Hi, I am Amy and using pypy with python3.6.6. I need to import "python -m pip install opencv-python" to run the program and try to import with pypy like "pypy3 -m pip install opencv-python". However, it give an error: "Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python You are using pip version 9.0.1, however version 19.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command." (by the way, I upgraded all the tools (pip and wheel) to the lastest version but they keep saying me to upgrade it). Do you have any idea to solve this problem? I need pypy to upgrade the speed of my program which is reading a large video and want to increase the average frame numbers. Thank you!
Apparently, your issue
"Could not find a version that satisfies the requirement opencv-python (from versions: ) is related to pip, and the suggested fix was to upgrade your pip ( https://pypi.org/project/opencv-python/). You may want to start with that. You will also need to find how opencv plays with pypy.
Regards On Wed, Feb 13, 2019 at 11:39 AM Amy <ekim94525@gmail.com> wrote:
Hi,
I am Amy and using pypy with python3.6.6. I need to import "python -m pip install opencv-python" to run the program and try to import with pypy like "pypy3 -m pip install opencv-python". However, it give an error: "Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python You are using pip version 9.0.1, however version 19.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command." (by the way, I upgraded all the tools (pip and wheel) to the lastest version but they keep saying me to upgrade it). Do you have any idea to solve this problem?
I need pypy to upgrade the speed of my program which is reading a large video and want to increase the average frame numbers.
Thank you! _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
Hello Amy, On Wed, Feb 13, 2019 at 10:38 AM Amy <ekim94525@gmail.com> wrote:
"pypy3 -m pip install opencv-python". However, it give an error: "Could not find a version that satisfies the requirement opencv-python (from versions: ) No matching distribution found for opencv-python
This happens because opencv decided to release only binary wheels on PyPI, as you can see here; note that the only files available are *.whl: https://pypi.org/project/opencv-python/#files The great advantage of binary wheels is that you don't have to recompile the package yourself; however, they are tied to a particular combination of OS/python version: opencv didn't release any binary wheel for PyPy, so pip cannot find any. When pip cannot locate a wheel, it tries to download a source package (like .tar.bz2 or .zip) and compile it on the fly; however, opencv didn't release any, that's why you get the error. Your best bet to have opencv on PyPy is to clone the source repo from github and run setup.py yourself: $ git clone https://github.com/skvark/opencv-python $ cd opencv-python $ pypy3 setup.py install ciao, Anto
participants (3)
-
Amy
-
Antonio Cuni
-
Mohamed Yousif