• aws 安装python解释器


    本文转载自 https://gist.github.com/niranjv/f80fc1f488afc49845e2ff3d5df7f83b

    由于Amazon Linux中预装的Python版本为2.7,该脚本教程很好地解决了在Amazon Linux中安装Python3.6的需求,遂转发记录至此。

    # install pre-requisites
    sudo yum -y groupinstall development
    sudo yum -y install zlib-devel
    sudo yum -y install openssl-devel
    # Installing openssl-devel alone seems to result in SSL errors in pip (see https://medium.com/@moreless/pip-complains-there-is-no-ssl-support-in-python-edbdce548852)
    # Need to install OpenSSL also to avoid these errors
    wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
    tar -zxvf OpenSSL_1_0_2l.tar.gz 
    cd openssl-OpenSSL_1_0_2l/
    ./config shared
    make
    sudo make install
    export LD_LIBRARY_PATH=/usr/local/ssl/lib/
    cd ..
    rm OpenSSL_1_0_2l.tar.gz
    rm -rf openssl-OpenSSL_1_0_2l/
    # Install Python 3.6
    wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
    tar xJf Python-3.6.0.tar.xz
    cd Python-3.6.0
    ./configure
    make
    sudo make install
    cd ..
    rm Python-3.6.0.tar.xz
    sudo rm -rf Python-3.6.0
    # Create virtualenv running Python 3.6
    sudo pip install --upgrade virtualenv
    virtualenv -p python3 MYVENV
    source MYVENV/bin/activate
    python --version
    # Python 3.6.0
  • 相关阅读:
    1、数据加密基础
    cookie——小甜品
    使用SpringBoot开发REST服务
    从编辑距离、BK树到文本纠错
    360影视视频下载
    从Trie树到双数组Trie树
    使用websocket-sharp来创建c#版本的websocket服务
    OFFICE 文档转换为html在线预览
    IDEA+PHP+XDebug调试配置
    HTML5录音控件
  • 原文地址:https://www.cnblogs.com/hanzeng1993/p/11251440.html
Copyright © 2020-2023  润新知