2017-09-14 95 views
1

我想通過命令在Ubuntu 15.04機器安裝OpenCV的Python安裝使用Python3的OpenCV的Python在Ubuntu 15.04

pip3 install opencv-python 

但只要我運行此命令,我得到以下錯誤:

Downloading/unpacking opencv-python 
Could not find any downloads that satisfy the requirement opencv-python 
Cleaning up... 
No distributions at all found for opencv-python 
Storing debug log for failure in /home/Nadeem/.pip/pip.log 

任何幫助將不勝感激。 謝謝!

回答

4

您可以從源代碼安裝opencv。
按照this鏈接來做。
或者您可能需要使用下面的命令

pip3 install --upgrade pip 
1

在第一次升級來升級您的PIP 3個點使用sudo

arsho:~/workspace $ sudo pip3 install --upgrade pip                      
Successfully installed pip 

現在再次使用sudo命令安裝opencv-python

arsho:~/workspace $ sudo pip3 install opencv-python 
Successfully installed numpy-1.13.1 opencv-python-3.3.0.10 

最後使用pip檢查opencv-python版本和位置信息。

arsho:~/workspace $ pip3 show opencv-python 
--- 
Name: opencv-python 
Version: 3.3.0.10 
Location: /usr/local/lib/python3.4/dist-packages 
Requires: numpy 

我在https://c9.io/使用Ubuntu 14.04.5 LTS測試這一點。