我使用的是安装了 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-python
,python3 -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 解决了它