Manim: Could not find a version that satisfies the requirement opencv-python==3.4.2.17

Created on 21 Oct 2019  路  4Comments  路  Source: 3b1b/manim

Could not install manimlib

Using python 3.7 I tried to install manimlib on my raspberry pi 2 B with pip, but i got an error.
When i tried to download the specific version of opencv-python 3.4.2.17 with pip i get the same error.

pi@raspberrypi:~ $ pip3 install manimlib

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting manimlib
  Using cached https://www.piwheels.org/simple/manimlib/manimlib-0.1.10-py3-none-any.whl

Collecting tqdm==4.24.0 (from manimlib)
  Using cached https://files.pythonhosted.org/packages/7d/e6/19dfaff08fcbee7f3453e5b537e65a8364f1945f921a36d08be1e2ff3475/tqdm-4.24.0-py2.py3-none-any.whl

Collecting argparse==1.4.0 (from manimlib)
  Using cached https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl

Collecting progressbar==2.5 (from manimlib)
  Using cached https://www.piwheels.org/simple/progressbar/progressbar-2.5-py3-none-any.whl

Collecting opencv-python==3.4.2.17 (from manimlib)
  Could not find a version that satisfies the requirement opencv-python==3.4.2.17 (from manimlib) (from versions: 3.4.3.18)
No matching distribution found for opencv-python==3.4.2.17 (from manimlib)

Later i looked in https://www.piwheels.org/project/opencv-python/ , and I could not find opencv-python==3.4.2.17 with cp37m.

Any help is appreciated.

Most helpful comment

Download the repo. In the root folder of the repository, there is a requirements.txt file with (you guessed it) the required packages for manim to run. Just delete the equal signs and the numbers behind them. Then install with setup.py (you can google how to, it's pretty standard).

Other way (the way I have done it): Fork the repository, make the change to requirements.txt as I said, push to your fork and pip install it from git.

All 4 comments

Worth a try is to remove the version number of opencv from requirements.txt and try again. On windows, manim works with all the latest versions of the libraries, not only with the specific versions. Can't say whether it's true on linux. Let me know if you need help.

@tomasderner97 How would you go about doing that on Windows?

Download the repo. In the root folder of the repository, there is a requirements.txt file with (you guessed it) the required packages for manim to run. Just delete the equal signs and the numbers behind them. Then install with setup.py (you can google how to, it's pretty standard).

Other way (the way I have done it): Fork the repository, make the change to requirements.txt as I said, push to your fork and pip install it from git.

Exatly the same problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WeiruLin picture WeiruLin  路  5Comments

Elteoremadebeethoven picture Elteoremadebeethoven  路  6Comments

OGALI picture OGALI  路  3Comments

Sir-Teo picture Sir-Teo  路  6Comments

SuperVegetaSon picture SuperVegetaSon  路  4Comments