centos7.2无pip安装pip-18.1-py2.py3-none-any.whl

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
    centos7.2无pip安装pip-18.1-py2.py3-none-any.whl_第1张图片
    3. cd pip/_internal/
    4. easy_install wheel.py


    5. easy_install pip

centos7.2无pip安装pip-18.1-py2.py3-none-any.whl_第2张图片
    6. pip安装成功

centos7.2无pip安装pip-18.1-py2.py3-none-any.whl_第3张图片
3. 原理暂时还未知, 等有空研究一个

 

你可能感兴趣的:(python)