前言
我在使用pip install opencv-python 时报错
Could not find a version that satisfies the requirement opencv (from versions: ) No matching distribution found for opencv
树莓派的镜像是默认装的镜像,没怎么装过其他东西的。我查看了python的版本,python是2.7版本的,树莓派镜像默认是装好了python2。分析原因,python2版本过久,无法找到满足opencv需求的版本。然后我将python3后安装,发现opencv安装成功。
具体操作
1.执行 sudo apt-get install python3 命令安装python3
sudo apt-get install python3
2.执行 python3 -V 查看 python3是否安装成功
python3 -V
3.执行 pip3 install opencv-python
pip3 install opencv-python
安装好后如图

在树莓派上使用pip install opencv-python时出现错误:Could not find a version that satisfies the requirement opencv。原因是python2版本过旧。通过安装python3,然后用pip3安装opencv-python来解决问题。在安装过程中,可能还会遇到缺少libcblas库的问题,通过安装libatlas-base-dev解决。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



