我尝试在我的树莓派4上安装opencv

pip install opencv-python

我收到以下错误



我用2019-07-10-raspbian-buster-full
$ python -V


$ pip --version



我看到了一些推荐的方法,但是没有一个起作用:

https://raspberrypi.stackexchange.com/questions/94990/installation-of-opencv-contrib-python-through-pip3-fails
sudo pip3 install opencv-contrib-python==3.4.4.19

https://www.pyimagesearch.com/2018/09/19/pip-install-opencv/
$ sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
$ sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
$ sudo apt-get install libatlas-base-dev
$ sudo apt-get install libjasper-dev

pip install opencv-contrib-python

我记得它总是可以在我的其他树莓pis(2b和3)上使用。
是否可以在树莓派4上安装opencv?

最佳答案

自周日以来,我的Raspberry Pi 3B和当前的Raspbian版本都存在完全相同的问题。

在Python 2.7下,安装已完成,但是图像中有噪点,这是以前没有发生的。

PS:由于SD卡问题,我不得不在周日完全重新安装Raspbian。

版本:

Raspbian Buster with desktop and recommended software
Image with desktop and recommended software based on Debian Buster
Version:July 2019
Release date:2019-07-10
Kernel version:4.19

Python 3.7.3

PIP 19.2.1

当前已安装numpy软件包

关于python - Raspberry Pi 4 pip安装opencv-python,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57211068/

10-11 22:35
查看更多