“Could not find a version that satisfies the requi

2020-02-24 12:21发布

I am struggling with Jetson TX2 board (aarch64).

I need to install python wrapper for OpenCV.

I can do:

$ sudo apt-get install python-opencv

But I cannot do:

$ sudo pip install opencv-python

Is this because there is no proper wheel file in http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv?

Is there a way to install opencv-python through pip?

标签: opencv pip
7条回答
Explosion°爆炸
2楼-- · 2020-02-24 12:51

We were getting the same error.For us, it solved by upgrading pip version (also discussed in FAQ of OpenCV GitHub). Earlier we had pip-7.1.0, post upgrading it to "pip-9.0.2", it successfully installed.

pip install --upgrade pip
pip install opencv-python
查看更多
冷血范
3楼-- · 2020-02-24 12:51

It happened with me on Windows, pip was not able to install opencv-python==3.4.0.12.

Later found out that it was due to the Python version, Python 3.7 has some issue with not getting linked to https://github.com/skvark/opencv-python.

Downgraded to Python 3.6 and it worked with:

pip3 install opencv-python
查看更多
Summer. ? 凉城
4楼-- · 2020-02-24 12:55

pip doesn't use http://www.lfd.uci.edu/~gohlke/pythonlibs/, it downloads packages from PyPI.

The problem is that you have an unusual architecture; pip cannot find a package for it and there is no source code package.

Unfortunately I think you're on your own. You have to download source code from https://github.com/skvark/opencv-python, install compiler and necessary libraries and compile OpenCV yourself.

查看更多
欢心
5楼-- · 2020-02-24 12:55

As there is no proper wheel file in http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv?

Try this:(Worked in Anaconda Prompt or Pycharm)

pip install opencv-contrib-python

pip install opencv-python
查看更多
叼着烟拽天下
6楼-- · 2020-02-24 12:58

Another problem can be that the python version you are using is not yet supported by opencv-python.

E.g. as of right now there is no opencv-python for python 3.8. You would need to downgrade your python to 3.7.5 for now.

查看更多
姐就是有狂的资本
7楼-- · 2020-02-24 13:10

A way to do this is to install Anaconda on your computer.

Then you should be able to do:

pip install opencv-python

or

conda install opencv
查看更多
登录 后发表回答