Pycharm | cv2爆红 | opencv-python安装 | Requirement already satisfied: opencv-python 有效解决方法
Requirement already satisfied: opencv-python in d:\anaconda\lib\site-packages (4.5.5.64)Requirement already satisfied: numpy>=1.13.3 in d:\anaconda\lib\site-packages (from opencv-python) (1.14.3)
·
安装opencv-python 报错如下:
Requirement already satisfied: opencv-python in d:\anaconda\lib\site-packages (4.5.5.64)
Requirement already satisfied: numpy>=1.13.3 in d:\anaconda\lib\site-packages (from opencv-python) (1.14.3)
cv2标红如图
于是用 pip install opencv-python 尝试安装
已存在opencv-python,但仍然标红
原来是未安装在所编程的环境中,解决如下:
1.找到opencv安装所在的目录位置
2.复制cv2文件
3.找到项目所在的环境位置
4.将cv2文件复制到环境所在的Lib文件夹下
5.问题解决,cv2不再报错
更多推荐
已为社区贡献4条内容
所有评论(0)