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

11 篇文章 0 订阅
本文详细记录了在Python 2.7环境下使用pip升级自身到20.1版本的过程,以及从清华大学镜像源安装OpenCV和依赖的numpy库的步骤。通过此教程,读者可以了解如何解决旧版本pip的问题,并成功安装图像处理库OpenCV。
摘要由CSDN通过智能技术生成

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值