centos7 安装pip

发布时间:2019-03-31 20:45:47编辑:auto阅读(2028)

    首先安装 python3

    安装过程
    1.安装相关依赖

    1 sudo yum install openssl-devel -y 
    2 sudo yum install zlib-devel -y

    2.安装setuptools

    2.1 wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26

    2.2 tar -zxvf setuptools-19.6.tar.gz
    2.3 cd setuptools-19.6
    2.4 sudo python setup.py build
    2.5 sudo python setup.py install

    3.安装pip

    3.1 wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb

    3.2 tar -zxvf pip-8.0.2.tar.gz 

    3.3 cd pip-8.0.2 

    3.4 python setup.py build
    3.5 sudo python setup.py install

关键字