Manim: Manim ModuleNotFoundError: No module named 'cairo'

Created on 7 Jan 2019  Â·  5Comments  Â·  Source: 3b1b/manim

Dear all,

Please help me in running Manim. I am getting following error.

manimerror

Most helpful comment

If the below didn't work
pip install pycairo

You can choose a .whl file compatible with your system (win32 vs win64) from here and install it like this:

pip install C:/[pathname]/pycairo‑1.18.0‑cp34‑cp34m‑win_amd64.whl

That worked for me.

All 5 comments

You don't have installed cairo, to install you have to put in your cmd:

python -m pip install pycairo

If the below didn't work
pip install pycairo

You can choose a .whl file compatible with your system (win32 vs win64) from here and install it like this:

pip install C:/[pathname]/pycairo‑1.18.0‑cp34‑cp34m‑win_amd64.whl

That worked for me.

close?

Before pip install pycairo I also needed to install pkg-config. It works now.

I just ran into this issue while installing on a fresh Ubuntu installation with these instructions: https://www.youtube.com/watch?v=z_WJaHYH66M. I tried all of the suggestions above, but nothing seemed to work. I had cairo installed 5 different ways (probably part of the issue) and I was getting the following error when pip installing requirements.txt:

ERROR: Cannot uninstall 'pycairo'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

So I ran pip install with the "--ignore-installed" flag:
sudo python3.7 -m pip install --ignore-installed -r requirements.txt
and was able to finish successfully installing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lkevinzc picture lkevinzc  Â·  3Comments

ZQiu233 picture ZQiu233  Â·  3Comments

Elteoremadebeethoven picture Elteoremadebeethoven  Â·  6Comments

samsamson33 picture samsamson33  Â·  5Comments

lucyliu2016 picture lucyliu2016  Â·  6Comments