当前位置:网站首页>Install opencv environment for raspberry pie to solve no module named 'CV2'
Install opencv environment for raspberry pie to solve no module named 'CV2'
2022-07-18 01:59:00 【Different cub】
lately On raspberry pie install opencv For days Introduce my methods and solutions
The current raspberry pie system Built in python2 and python3
therefore When the system is installed Using the command line Input : python Will be output The default version number is 2.7.X
however everyone open Thonny Will find The output bar shows python yes 3.7.X . And the current raspberry pie system 2020 Years later, it has stopped right python2 For maintenance ( Heard online )
because Before the installation opencv It has always been aimed at python Installed , So there will be mistakes , Report errors python3 import cv2 Error indication NO module named 'cv2’
Now let me introduce my solutions and installation methods , But it takes a long time , need 5-6 Hours
1. First take Raspberry pie is the default py2 Change it to py3 ,py3 Don't download it again , because The system comes with
Modify using the following command
udo update-alternatives --install /usr/bin/ python python /usr/bin/ python2 100
sudo update-alternatives --install /usr/bin/ python python /usr/bin/ python3 150

2. Then according to the article of this link According to py3 Of opencv Installation method installation , But there will be mistakes
https://www.jianshu.com/p/56929416b4a1
The following link to the network disk is what I downloaded opencv package , The download link in the above article link is too slow
link :https://pan.baidu.com/s/1o-uu54EwxZBFocR2he4BHg
Extraction code :1111
3. Errors occurred According to this Article modification
https://blog.csdn.net/simonforfuture/article/details/101716181
The solution to the error in the above link Need some supplementary documents , See the link below
link :https://pan.baidu.com/s/1M5QB_8vHT5nRJE3wJlL1Zg
Extraction code :1111
attach : If the network disk fails , Comment contact
边栏推荐
- Issue 44: effective team development
- Pat brush questions
- “OpenCvSharp.Mat“的类型初始值设定项引发异常
- C language (program environment and preprocessing)
- 持久化分析
- 2022-07-14 study notes of group 5 self-cultivation class (every day)
- redis持久化之aof
- 反射面试
- 容器面试问题
- 51 single chip microcomputer serial port baud rate (keep it and don't look everywhere)
猜你喜欢

【C】 Address of array

【C】数组的地址

. Net core configuration cross domain

解析协同办公“协同”为何意,数字化办公又如何轻松“破题”?

What are the problems we need to pay attention to in setting the standard of Baidu search basic information?

百度搜索基础信息设置规范,有哪些我们需要注意的问题呢?

10 minutes to customize the pedestrian analysis system, detection and tracking, behavior recognition, human attributes all in one!

Send your code into space and develop "the greatest work" with Huawei cloud

高权重没备案网站,批量降权,正常吗?

树莓派 安装 opencv 环境,解决NO module named ‘cv2’
随机推荐
Issue 36: recent document plan
Mysql事务
工程监测振弦传感器无线采集仪外接数字传感器
Issue 42: the so-called management team
Introduction to redis
已备案域名,严格管控买卖,你知道吗?
Compare the high-quality [test report] template with your own?
pat刷题
CF1422C Bargain (DP+思维+数学)
How can Volvo be confident to maintain "zero casualties" in traffic safety in the era of electrification?
对比一下优质【测试报告】模板与你自己的有何不同?
Structure related type resolution
C language to achieve a simple minesweeping game (two-dimensional array)
WinForm控件属性大全
300000 prize pool is waiting for you to fight! Natural language processing (NLP) competition collection is coming
Iotop command (monitor disk IO status)
使用scroll-view实现内容列表的竖向滚动
Enterprise station, there is ranking, no traffic, how to do?
第十四章 多进程
[HCIA] OSI model