pip install cv2 安装报错

pip install cv2 安装报错是一个常见现象:

  ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
  ERROR: No matching distribution found for cv2

解决方案一:

  CV2更改为opencv-python

  pip install opencv-python

  方法解决不了则需使用国内的镜像源来加速,克服有时候网络不稳定时的网络问题。

规则:

  pip install 插件名 -i  http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

代码:

pip install opencv-python -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

  成功啦、、、、

posted @ 2019-11-29 17:30  红领巾1994  阅读(5230)  评论(0编辑  收藏  举报