python 2.7安装

作者: 沐兮_d64c | 来源:发表于2017-12-08 16:29 被阅读5次

    1,简介

    1)pip是一个Python包管理工具,用于安装PyPI 中的python库。
    2) pip --version python -V

    2,安装python和pip

    python
    wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
    yum install openssl openssl-devel zlib-devel gcc -y
    mkdir -p /usr/local/python2.7.11
    ./configure --prefix=/usr/local/python2.7.11
    make & make install
    mv /usr/bin/python /usr/bin/python26
    ln -s /usr/local/python2.7.11/bin/python2.7 /usr/bin/python
    python -V

    pip
    wget https://bootstrap.pypa.io/get-pip.py
    python get-pip.py
    mv /usr/bin/pip /usr/bin/pipbk
    ln -s /usr/local/python2.7.11/bin/pip2.7 /usr/bin/pip

    相关文章

      网友评论

        本文标题:python 2.7安装

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