Python
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-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)
使用 sudo apt-get install python-opencv 解決了它