问题描述:
python 中使用cv2导入时报如下错,
ERROR: Could not find a version that satisfies the requirement cv2
ERROR: No matching distribution found for cv2
PS D:\workspace\python_workspaces> pip install cv2
ERROR: Could not find a version that satisfies the requirement cv2
ERROR: No matching distribution found for cv2
解决方法:
安装opencv-python,如下
python -m pip install opencv-python
在尝试导入Python的cv2库时遇到了找不到合适版本的错误。为了解决这个问题,可以使用命令`python -m pip install opencv-python`来安装OpenCV库,而不是直接安装cv2。这将确保正确安装OpenCV的Python接口。
2万+

被折叠的 条评论
为什么被折叠?



