python-2.7/Win32/pip upgrade and install from pypi.tuna.tsinghua.edu.cn

python-2.7-Win32-Windows-PIP

 

 

C:\Python27\Scripts>cd ..

C:\Python27>python  -m pip install  --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/54/2e/df11ea7e23e7e761d484ed3740285a34e38548cf2bad2bed3dd5768ec8b9/pip-20.1-py2.py3-none-any.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 34kB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-20.1
You are using pip version 8.1.1, however version 20.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

C:\Python27>Scripts\pip.exe   -V
pip 20.1 from c:\python27\lib\site-packages\pip (python 2.7)

C:\Python27>

###########################

############## Install from mirror!!!  

###########################

C:\Python27\Scripts>
C:\Python27\Scripts>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
Collecting opencv-python
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/86/8d/6e00798d2f1bebcdab068d07d52f40e0efc49f0f628a97dff14f3941a9df/opencv_python-4.2.0.32-cp27-cp27m-win32.whl (24.2MB)
    100% |████████████████████████████████| 24.2MB 65kB/s
Collecting numpy>=1.11.1 (from opencv-python)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0b/cc/9e84addc909c73d825fee5b69804da964552650b22dad92d23363fcac4e8/numpy-1.16.6-cp27-cp27m-win32.whl (10.0MB)
    100% |████████████████████████████████| 10.0MB 157kB/s
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.16.6 opencv-python-4.2.0.32
You are using pip version 8.1.1, however version 20.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章