Pycharm中安装ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)

1.运行代码 "pip install 包名" 安装相关包出现下图提示:

Pycharm中安装ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)_第1张图片

 2.鼠标指向 “install package cv2” ,不直接搜索cv2安装,而应该搜索opencv-python进行安装,选择install package opencv-python我的就直接安装成功了。

 3.当2中的方法也无法安装的时候,查阅发现可以在cmd窗口直接输入:pip install opencv-python 即可安装成功。

Pycharm中安装ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)_第2张图片

 

你可能感兴趣的:(pycharm,python,ide)