美文网首页
linux下配置python运行环境

linux下配置python运行环境

作者: ZHQIAN | 来源:发表于2018-03-20 19:47 被阅读0次

    centos:

    # yum groupinstall 'Development Tools'
    # yum install zlib-devel bzip2-devel  openssl-devel ncurses-devel
    # wget  https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tar.xz
    # tar Jxvf  Python-3.5.0.tar.xz
    # cd Python-3.5.0
    # ./configure --prefix=/usr/local/python3
    # make && make install
    # ln -s /usr/local/python3/bin/python3.5 /usr/local/bin/python3
    

    安装成功!!!
    如果提示:Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS

    这是原因没有安装或升级oenssl:

    # yum install openssl-devel
    

    安装 pip

    # yum -y install epel-release
    # yum install python-pip
    

    升级pip到最高版本

    # pip install --upgrade pip
    

    相关文章

      网友评论

          本文标题:linux下配置python运行环境

          本文链接:https://www.haomeiwen.com/subject/ootiqftx.html