1. 背景:
要往服务器上传python的库, 下载的whl文件, 然后, 没注意下载的pip是pip-18.1-py2.py3-none-any.whl, 也是一个whl, 偶尔的法子居然装上去了, 所以分享一下
PS: easy_install是通过python-setuptools安装的, 自带的包
2. 过程:
0.环境: CentOS Linux release 7.3.1611 (Core), Python 2.7.5
1. cd /usr/lib/python2.7/site-packages/
2. unzip pip-18.1-py2.py3-none-any.whl
3. cd pip/_internal/
4. easy_install wheel.py
5. easy_install pip
6. pip安装成功
3. 原理暂时还未知, 等有空研究一个