pycharm安装opencv出现错误:Could not find a version that satisfies the requirement cv2
报错的原因:
直接pip install cv2 。 提示找不到相关版本Could not find a version that satisfies the requirement cv2
使用pip install opencv-python即可成功安装
第二种方式(如果第一种不可以则用第二种)
一:file — setting
二:打开project interpreter,随意双击一个包名字
三:输入opencv,选择这个:
四:点击install安装,然后导入就不会报错了