安装pip3需要setuptools
可以在下面这个网站找python模块
https://pypi.python.org/pypi
注意下载源码
#安装setuptools
wget https://pypi.python.org/packages/7c/cb/bdfbb0b6a56459d5461768de824d4f40ec4c4c778f3a8fb0b84c25f03b68/setuptools-37.0.0.zip#md5=f905ca70d2db37b7284c0f6314ab6814 #下载setuptools
upzip setuptools-37.0.0.zip #解压
cd setuptools-37.0.0 #进入目录
python3 setup.py build #组建,使用别人的python包都要组建再安装
python3 setup.py install #安装
#安装pip3
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python3 setup.py build
python3 setup.py install
root@kali:~/Desktop/pip-9.0.1# pip3 --version
pip 9.0.1 from /usr/local/lib/python3.6/dist-packages/pip-9.0.1-py3.6.egg (python 3.6)
网友评论