python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )

最先开始是报出这样的错误,然后我就去安装,python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第1张图片点击“install package cv2”
python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第2张图片安装未成功,然后百度查找相关资料,说是压根没有cv2的包,实际上需要安装的是一个叫opencv-python的包,
python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第3张图片然后我就去安装opencv-python包,打开终端:键盘上的窗口键+R,直接在目录后面输入:pip install opencv-python,等待安装完成即可。
python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第4张图片
然后回到pycharm中,找到file-setting-Project Interpreter,右上角有个+,点击进去,
python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第5张图片找到opencv-python,点击“install Package”,提示安装成功python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第6张图片回到代码界面,将cv2安装就可以了。
python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2 (from versions: )_第7张图片第一次写,希望能帮到小伙伴!

你可能感兴趣的:(cv2)