NeoVe
NeoVe

Reputation: 3907

Installing opencv on Ubuntu 16-04

I have a virtualenv created with virtualenvwrapper.

However, I'm on python 2.7

Whenever I try to install the opencv-python by pip, as sudo or not, I receive this message:

pip 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/kristian/.pip/pip.log

Any ideas on why this us happening?

Upvotes: 0

Views: 392

Answers (2)

skvark
skvark

Reputation: 2321

Your pip is most likely too old since opencv-python packages are distributed as manylinux1 wheels (https://github.com/pypa/manylinux). You need pip version 8.1 or later to install manylinux1 binary packages.

To upgrade your pip globally:

sudo -H pip install --upgrade pip

Inside virtualenv this should be enough:

pip install --upgrade pip

Upvotes: 1

Harvett
Harvett

Reputation: 178

I recommend you to use anaconda, which is very convenient and saves a lot of trouble. With anaconda, you don't need to care about your local environment.

Upvotes: 1

Related Questions