python安装opencv出现错误,通过pip安装opencv时出错
生活随笔
收集整理的這篇文章主要介紹了
python安装opencv出现错误,通过pip安装opencv时出错
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
python version = Python 3.8.0
pip version = 19.3.1
C:\Users\Sami Ullah Ch>pip3 install opencv-python
ERROR: Could not find a version that satisfies the requirement opencv-python (from versions: none)
解決方案
Install OpenCV
Refresh the packages index and install the OpenCV package by typing:
sudo apt update
sudo apt install python3-opencv
The command above will install all packages necessary to run OpenCV.
Verify the OpenCV installation
To verify the installation we will import the cv2 module and print the OpenCV version:
>>> import cv2
>>> cv2.__version__
Output
3.2.0
總結
以上是生活随笔為你收集整理的python安装opencv出现错误,通过pip安装opencv时出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java黑皮书课后题第11章:11.3(
- 下一篇: 橙子云手机华为保修吗_华为云手机引关注!