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

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.
Most helpful comment
If the below didn't work
pip install pycairoYou 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.