安装numpy出现警告WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.

Microsoft Windows [版本 10.0.19041.985]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Tommy>Python
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^Z


C:\Users\Tommy>pip install numpy
Collecting numpy
  Using cached numpy-1.20.3-cp39-cp39-win_amd64.whl (13.7 MB)
Installing collected packages: numpy
Successfully installed numpy-1.20.3
WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.
You should consider upgrading via the 'd:\software\python3.9\python.exe -m pip install --upgrade pip' command.

C:\Users\Tommy>pip install opencv-python
Collecting opencv-python
  Using cached opencv_python-4.5.2.52-cp39-cp39-win_amd64.whl (34.7 MB)
Requirement already satisfied: numpy>=1.19.3 in d:\software\python3.9\lib\site-packages (from opencv-python) (1.20.3)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.5.2.52
WARNING: You are using pip version 21.1.1; however, version 21.1.2 is available.
You should consider upgrading via the 'd:\software\python3.9\python.exe -m pip install --upgrade pip' command.

C:\Users\Tommy>python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in d:\software\python3.9\lib\site-packages (21.1.1)
Collecting pip
  Using cached pip-21.1.2-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.1
    Uninstalling pip-21.1.1:
      Successfully uninstalled pip-21.1.1
Successfully installed pip-21.1.2

C:\Users\Tommy>pip install numpy
Requirement already satisfied: numpy in d:\software\python3.9\lib\site-packages (1.20.3)

C:\Users\Tommy>pip install opencv-python
Requirement already satisfied: opencv-python in d:\software\python3.9\lib\site-packages (4.5.2.52)
Requirement already satisfied: numpy>=1.19.3 in d:\software\python3.9\lib\site-packages (from opencv-python) (1.20.3)

C:\Users\Tommy>python
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print(cv2.version)
<module 'cv2.version' from 'D:\\software\\python3.9\\lib\\site-packages\\cv2\\version.py'>
>>>

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值