pip install opencv-python 在 Raspbian 上出现错误

pip install opencv-python 在 Raspbian 上出现错误

我使用的是安装了 Raspbian 的 Raspberry Pi 3 B+。

当我运行时,pip install opencv-python我收到以下消息:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-python
ERROR: Could not find a version that satisfies the requirement opencv-python (from version: none)
ERROR: No matching distribution found for opencv-python

我已尝试过pip install opencv-contrib-pythonpython3 -m pip install opencv-python但仍然出现同样的错误。

pip install --upgrade pip尝试安装 opencv 之前,但它说我已经拥有最新版本。

我拥有的:

 $ python --version
Python 2.7.13

 $ python3 --version
Python 3.6.3

 $ pip --version
pip 19.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

答案1

使用 sudo apt-get install python-opencv 解决了它

相关内容