getting error while installing opencv via pip

怎甘沉沦 提交于 2019-12-25 18:27:07

问题


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)


回答1:


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




回答2:


OpenCV has not been built yet for 3.8.0. You should try using Python version 3.7



来源:https://stackoverflow.com/questions/58919182/getting-error-while-installing-opencv-via-pip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!