Python

pip install opencv-python 在 Raspbian 上給出錯誤

  • May 2, 2019

我正在使用安裝了 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)

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

引用自:https://unix.stackexchange.com/questions/515766