Python安装cv2库出错及解决:Could not find a version that satisfies the requirement cv2
原来的安装命令是:
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相关推荐
- 【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )
文章目录 一.报错信息 二.解决方案 一.报错信息 报错信息 : ERROR: Could not find a version that satisfies the requirement elft ...
- pip install skimage安装skimage库出错的解决办法
pip install skimage安装skimage库出错的解决办法 安装skimage库出错 pip install skimage 解决办法: pip install scikit-image
- 【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 ...
- python安装第三方库-常见错误解决
python安装第三方库(例子requests.numpy) 在本地安装python,并配置好相应的环境变量(自行百度很简单) 直接cmd 命令pip list可查看当前python下已经默认安装了哪 ...
- Conda/Python安装pymssql库出现Warning解决
以win10坏境为例: 直接 pip install pymssql 会出现以下报错: pip install pymssql WARNING: Retrying (Retry(total=4, co ...
- 解决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 ...
- 完美解决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 ...
- 解决 Could not find a version that satisfies the requirement xxx
在 Ubuntu 22 下为 python 2.7 安装 numpy.opencv 时的报错记录 电脑上的 Ubuntu 版本是 22.04.1,因为工作需要用到 python2,而 Python 2 ...
- 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 ...
- python安装lxml库出错_python安装lxml出错的解决方法
python安装lxml出错的解决方法 发布时间:2020-08-07 09:44:14 来源:亿速云 阅读:71 作者:小新 这篇文章给大家分享的是有关python安装lxml出错的解决方法的内容. ...
最新文章
- MySQL优化篇:慢查询日志
- [HNOI2015]接水果
- Laravel 引入自定义类库或第三方类库
- 停止宗教战争,好吗?
- python selenium鼠标点击_Python+Selenium学习--鼠标事件
- 《四世同堂》金句摘抄(四)
- javaone_JavaOne演讲者选择了您不容错过的10个会话
- BZOJ1453: [Wc]Dface双面棋盘
- 第一章:最小可行区块链
- node.js express 启用 https
- 0基础学python要多久-零基础学习python,要多久才可以学好并且找到工作?
- java mapreduce示例,hadoop入门-MapReduce实例(一)
- pt-table-checksum
- 有关cdsn论坛被封后如何解封
- 《HTTP权威指南》学习总结1——HTTP协议概述
- 使用QFIL升级高通芯片的Android系统
- 安卓仿苹果键盘输入法_iphone输入法安卓版下载
- 常见的浏览器与内核你知道都有哪些吗?
- Java-Mail Java程序发送Email
- java字符型变量有几个,Java 字符型变量