centos安装pip3

安装pip3
1:安装依赖

yum install openssl-devel   -y

yum install zlib-devel  -y

2:安装setuptools

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

tar -zxvf setuptools-19.6.tar.gz

cd setuptools-19.6.tar.gz

python3 setup.py build

python3 setup.py install

3:安装pip

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

tar -zxvf pip-8.0.2.tar.gz

cd pip-8.0.2

python3 setup.py build

python3 setup.py install
--------------------- 

ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

 

posted @ 2019-03-19 06:59  强仔必胜  阅读(455)  评论(0编辑  收藏  举报