Linux 安装pip
参考:为Linux 系统安装pip
pip: “A tool for installing and managing Python packages.”,也就是说pip是python的软件安装工具。
利用wget下载pip最新版本:
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
下载并安装setuptools:
wget https://pypi.python.org/packages/26/d1/dc7fe14ce4a3ff3faebf1ac11350de4104ea2d2a80c98393b55c84362b0c/setuptools-32.1.0.tar.gz#md5=44054eaaa39420983abfbdfa1ae17aa7
tar -zxvf setuptools-32.1.0.tar.gz
cd setuptools-32.1.0.tar.gz
python setup.py build
python setup.py install
安装pip:
cd pip-9.0.1
sudo python setup.py install
安装完毕,查看版本信息:
root@ubuntu:/home/wasdns/pip-9.0.1# pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg (python 2.7)
2016/12/17
To improve is to change, to be perfect is to change often.