原来的安装命令是:

Python安装OpenCV_柳鲲鹏-CSDN博客

  今天怎么不灵了?初步判断是原来使用3.5,现在改用了2.7(项目需要)。

  • 解决办法一(网友提供)
 pip3 install opencv-python
  • 解决办法二

  尝试运行命令:

pip install cv2
Collecting cv2Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2

  看到这个错误,赶紧搜索,找到的办法都无法解决。于是怀疑查找的更新库有问题……可是为什么改了也不对?

  后来同事过来一看,直接搜索cv2,原来安装办法是:

sudo apt-get install python-opencv# 同理,还有其他的:python-scipy/python-numpy/python-matplotlib/python-requests/python-skimage

  然后进python, import cv2,成功。

  查看版本号:

python -V
pip -V

filterpy可以直接用pip安装。

sudo pip2 install opencv-pythonsudo pip2 install --upgrade pipsudo pip  install --upgrade pip

Python安装cv2库出错及解决:Could not find a version that satisfies the requirement cv2相关推荐

  1. 【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )

    文章目录 一.报错信息 二.解决方案 一.报错信息 报错信息 : ERROR: Could not find a version that satisfies the requirement elft ...

  2. pip install skimage安装skimage库出错的解决办法

    pip install skimage安装skimage库出错的解决办法 安装skimage库出错 pip install skimage 解决办法: pip install scikit-image

  3. 【Python】Could not find a version that satisfies the requirement cv2 (from versions: ) 的解决方案

    pip下载cv2出现下面的错误:   Could not find a version that satisfies the requirement cv2 (from versions: ) No ...

  4. python安装第三方库-常见错误解决

    python安装第三方库(例子requests.numpy) 在本地安装python,并配置好相应的环境变量(自行百度很简单) 直接cmd 命令pip list可查看当前python下已经默认安装了哪 ...

  5. Conda/Python安装pymssql库出现Warning解决

    以win10坏境为例: 直接 pip install pymssql 会出现以下报错: pip install pymssql WARNING: Retrying (Retry(total=4, co ...

  6. 解决pip无法安装bayes-opt报错:ERROR: Could not find a version that satisfies the requirement bayes-opt

    完整的报错是: ERROR: Could not find a version that satisfies the requirement bayes-opt ERROR: No matching ...

  7. 完美解决Could not find a version that satisfies the requirement xxx (from versions: )

    今天在使用pip安装模块的时候,发现无法使用.报错信息:Could not find a version that satisfies the requirement xxxxxxx(from ver ...

  8. 解决 Could not find a version that satisfies the requirement xxx

    在 Ubuntu 22 下为 python 2.7 安装 numpy.opencv 时的报错记录 电脑上的 Ubuntu 版本是 22.04.1,因为工作需要用到 python2,而 Python 2 ...

  9. ubuntu20.04安装tensorflow2.4,安装过程中出现了ERROR: Could not find a version that satisfies the requirement...

    ubuntu20.04安装tensorflow2.4的过程中,出现了"ERROR: Could not find a version that satisfies the requireme ...

  10. python安装lxml库出错_python安装lxml出错的解决方法

    python安装lxml出错的解决方法 发布时间:2020-08-07 09:44:14 来源:亿速云 阅读:71 作者:小新 这篇文章给大家分享的是有关python安装lxml出错的解决方法的内容. ...

最新文章

  1. MySQL优化篇:慢查询日志
  2. [HNOI2015]接水果
  3. Laravel 引入自定义类库或第三方类库
  4. 停止宗教战争,好吗?
  5. python selenium鼠标点击_Python+Selenium学习--鼠标事件
  6. 《四世同堂》金句摘抄(四)
  7. javaone_JavaOne演讲者选择了您不容错过的10个会话
  8. BZOJ1453: [Wc]Dface双面棋盘
  9. 第一章:最小可行区块链
  10. node.js express 启用 https
  11. 0基础学python要多久-零基础学习python,要多久才可以学好并且找到工作?
  12. java mapreduce示例,hadoop入门-MapReduce实例(一)
  13. pt-table-checksum
  14. 有关cdsn论坛被封后如何解封
  15. 《HTTP权威指南》学习总结1——HTTP协议概述
  16. 使用QFIL升级高通芯片的Android系统
  17. 安卓仿苹果键盘输入法_iphone输入法安卓版下载
  18. 常见的浏览器与内核你知道都有哪些吗?
  19. Java-Mail Java程序发送Email
  20. java字符型变量有几个,Java 字符型变量

热门文章

  1. 关于启动PPT时,出现错误对话框的问题的解决.
  2. HashTable,HashMap和ConcurrentHashMap的区别?
  3. Java并发:线程间数据传递和交换
  4. 基于Redis的分布式锁安全性分析-转
  5. android选择图片,通过uri获取路径
  6. eclipse 搭建python环境
  7. PHP与MySQL设计模式:代理模式
  8. python中的commands模块
  9. MS windows下的网络访问设置经典--仅来宾
  10. 随机变换背景图象(一个可以刷新心情的特效)