安装Python的cv2包出错
程序员文章站
2024-01-05 14:57:52
...
安装Python的cv2包出错
当在命令行输入pip install cv2时报错如下:
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
原因就是cv2的包不叫cv2,而是叫opencv-python
所以当输入pip install opencv-python时, 即可正确安装。