安装setuptools
到官网(https://pypi.org/project/setuptools/)下载 setuptools 安装包
下载安装包
wget https://files.pythonhosted.org/packages/37/1b/b25507861991beeade31473868463dad0e58b1978c209de27384ae541b0b/setuptools-40.6.3.zip
解压缩
unzip setuptools-40.6.3.zip
安装
cd setuptools-40.6.3
sudo python setup.py build
sudo python setup.py install
安装pip
到官网(https://pypi.org/project/pip/)下载pip安装包
wget https://files.pythonhosted.org/packages/45/ae/8a0ad77defb7cc903f09e551d88b443304a9bd6e6f124e75c0fbbf6de8f7/pip-18.1.tar.gz
解压缩
tar zxvf pip-18.0.tar.gz
安装
cd ../pip-18.0/
sudo python setup.py install
查看pip版本
$ pip -V
pip 18.0 from /usr/lib/python2.7/site-packages/pip-18.0-py2.7.egg/pip (python 2.7)
网友评论