OpenCV未通过Python 3.8中的pip instal OpenCV或pip install cv2安装
我尝试使用pip安装OpenCV安装OpenCV,但出现以下错误:OpenCV未通过Python 3.8中的pip instal OpenCV或pip install cv2安装,python,opencv,Python,Opencv,我尝试使用pip安装OpenCV安装OpenCV,但出现以下错误: ERROR: Could not find a version that satisfies the requirement opencv ERROR: No matching distribution found for opencv WARNING: You are using pip version 21.0.1; however, version 21.1.1 is available. You should consi
ERROR: Could not find a version that satisfies the requirement opencv
ERROR: No matching distribution found for opencv
WARNING: You are using pip version 21.0.1; however, version 21.1.1 is available.
You should consider upgrading via the 'c:\users\ozark\appdata\local\programs\python\python38-
32\python.exe -m pip install --upgrade pip' command.
然后我尝试使用pip安装cv2,但再次出现错误:
ERROR: Could not find a version that satisfies the requirement cv2
ERROR: No matching distribution found for cv2
WARNING: You are using pip version 21.0.1; however, version 21.1.1 is available.
You should consider upgrading via the 'c:\users\ozark\appdata\local\programs\python\python38-
32\python.exe -m pip install --upgrade pip' command.
我做错了什么?我看了文件,它清楚地说使用cv2?感谢您的帮助。提前感谢您。实际上,您必须使用pip安装opencv python来通过pip安装opencv。导入模块时必须使用“cv2” 例如:
import cv2
以及:
我希望这对你有帮助,并且编码愉快 这确实奏效了!非常感谢,当我回顾文档时,它实际上就是这么说的,在导入模块时使用了cv2。再次感谢。没问题,我很乐意帮忙。如果答案有用,请接受。是的,我接受,非常感谢你的帮助。
pip install opencv-python