Pip will not install manim

I’m on Fedora 41. And I’m trying to install Manim in a venv.
After activating it, installing the correct packages, and going through everything according to Linux - Manim Community v0.18.1 , everything reports good, but the pip command fails.
A paste is here : Python - Pastebin.com

I tried looking for any other packages, looked for manim in dnf, and tried deactivating the venv, to no avail.
Hope anyone can help!

Try running the command in a command prompt window instead of Powershell. I had the same issue and this worked for me.

manim depends on manimpango which does not ship pre-built wheels for Linux. Pip tries to build it for you but fails because you don’t have the necessary (external) dependencies. Fortunately, looks like manimpango does note the lack of Linux wheels and provides instructions on setting up the requirements for building it.

1 Like

There’s something funky happening with versions… according to pypi, manimpango is at 0.6.0, with 1.0 alpha releases also available. But that’s not the version it’s attempting, so presumably something is pinning to an earlier version?

Collecting manimpango<0.5.0,>=0.4.0.post0 (from manim)
  Using cached ManimPango-0.4.4.tar.gz (4.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
 
  × Getting requirements to build wheel did not run successfully.

And then actually sensing the version seems to go wrong:

      KeyError: '__version__'

Not sure what that’s about…

I’m on Fedora 41.

There is NO powershell and NO CMD. This is Linux. Read the post.
:confused:

I fixed it!
After manually specifying pip to install the latest version of manim, i found the issue.
Manim version 0.18 does not exist for Python 3.13, so pip tries an older one, which’ll fail.
After installing pyenv, and geting Python 3.12, and activating a venv with Python 3.12, it worked!
Now I can explain math to my dogs :slight_smile:

1 Like

Now I can explain math to my dogs

That’s an ambitious goal, let us know how it goes! :smile: