Install opencv-python engage in a long time, the overall start the update does not work, behind the mirror site no corresponding whl.
1. Update the system error, replacement mirror URL (vim /etc/apt/sources.list modified)
vim /etc/apt/sources.list.d/raspi.list
2. Update System
sudo apt-get update
sudo apt-get upgrade
The results appear: it 'Suite' value is modified from 'testing' to 'stable' N: In order to be able to use this repository, it must be ...
Search for a long time, the results of use: sudo apt upddate, and then to get
3. Installation opencv-python
Raspberry Pi comes with python2 and python3, check the version of python. python3 -V
Originally execute: sudo pip3 install opencv-python can automatically download, So now we can not slow download speeds, though less than 10M.
Search for a long, I found on csdn, 15 points to the results, too expensive. Finally, use the vpn down to the way many times, a few, who may need to take the resources I uploaded. Other places have the resources, you can download a.
Well, just put a download path, and then enter the corresponding path to the following: execute sudo pip3 install + name to be installed.
There are a bunch of dependencies, other articles I said to install a brain full installed:
- sudo apt-get install libjpeg8-dev
- sudo apt-get install libtiff5-dev
- sudo apt-get install libjasper-dev
- sudo apt-get install libpng12-dev
- sudo apt-get install libqt4-test
- sudo apt-get install libqtgui4
- sudo apt-get install libatlas-base-dev
- sudo apt-get install libgflags-dev
Then open the Raspberry Pi comes thonny python IDE, import cv2, compiled right on the right.