Resolving pycairo Build Errors Due to Missing C Compiler on Ubuntu
When installing Manim withuv add manim, the process may fail with an error indicating that pycairo could not be built because no C compiler was found.
Error Output
Root Cause
The error means your system is missing a C compiler (gcc or clang), which is required to compile pycairo — a native dependency of Manim.
Fix
build-essential pulls in gcc, make, and other essential compilation tools. libcairo2-dev and libpango1.0-dev provide the native libraries that pycairo and Manim depend on.