Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install opencv-python under python3 ubuntu 14.04

Tags:

python

opencv

I want to use opencv under python 3 in Ubunto 14.04. I plan to use the PyCharm IDE to develop my program.

Inside PyCharm I choose, I set:

File/Settings/Project:HelloWorld/Project Interpreter/3.4.3(/usr/bin/python3.4)

Python 3.4.3 is the default version of python in Ubunto 14.04.

Then I try to add opencv-python package:

File/Settings/Project:HelloWorld/Project Interpreter/+ (where you add the package)

and the system gives me this error:

 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

the error is the same when I run the command from terminal. I believe the problem is related to installing opencv under python3 but I am not sure I know if I can fix it. Please let me know your opinion.

Thanks

like image 732
yas yasi Avatar asked Sep 19 '16 10:09

yas yasi


1 Answers

The fix is to update your pip and try again. This worked for me.

So, first:

pip install --upgrade pip

after that:

pip install opencv-python

like image 124
Joseph Avatar answered Oct 13 '22 17:10

Joseph