在python3 ubunto 14.04下安装opencv-python

yas*_*asi 5 python opencv

我想在Ubunto 14.04中使用python 3下的opencv.我计划使用PyCharm IDE来开发我的程序.

在我选择的PyCharm中,我设置:

文件/设置/项目:HelloWorld/Project Interpreter/3.4.3(/usr/bin/python3.4)

Python 3.4.3是Ubunto 14.04中python的默认版本.

然后我尝试添加opencv-python包:

文件/设置/项目:HelloWorld/Project Interpreter/+(你添加包的地方)

并且系统给了我这个错误:

 Executed command:

 pip install opencv-python 


 Try to run this command from the system terminal. Make sure that you   
 use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.4'.

 DEPRECATION: --no-install, --no-download, --build, and --no-clean are   deprecated.  See https://github.com/pypa/pip/issues/906.
 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 /root/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)

当我从终端运行命令时,错误是相同的.我相信问题与在python3下安装opencv有关,但我不知道我是否知道是否可以修复它.请让我知道你的意见.

谢谢

Jos*_*eph 9

修复是更新你的点子,然后再试一次.这对我有用.

所以,首先:

pip install --upgrade pip

之后:

pip install opencv-python


Dil*_*anm 0

据我从查询 pip (使用pip search opencv)中看到,没有名为opencv-python我认为您正在寻找的包是pyopencv

这个问题似乎几乎相同