centos7 安裝pip

努力!~奮鬥!!!發表於2018-11-08

首先安裝 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