linux下pip包安装
1.进入https://pypi.python.org/pypi/pip
下载源码包
wget -c https://pypi.python.org/packages/41/27/9a8d24e1b55bd8c85e4d022da2922cb206f183e2d18fee4e320c9547e751/pip-8.1.1.tar.gz
wget -c https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
2.安装pip
tar xzvf pip-8.1.1.tar.gz
cd pip-8.1.1
python setup.py install
报错,缺少setuptools
解决方法:
进入https://pypi.python.org/pypi/setuptools
wget -c https://pypi.python.org/packages/d3/16/21cf5dc6974280197e42d57bf7d372380562ec69aef9bb796b5e2dbbed6e/setuptools-20.10.1.tar.gz#md5=cc3f063d05e3bff4d3fa07a5a1017c3b
https://pypi.python.org/packages/25/4e/1b16cfe90856235a13872a6641278c862e4143887d11a12ac4905081197f/setuptools-28.8.0.tar.gz#md5=43d6eb25f60e8a2682a8f826ce9e3f42
tar xzvf setuptools-20.10.1.tar.gz
cd setuptools-20.10.1
python setup.py install