주절주절

manim mac m2pro 설치 에러 cairo.h' file not found

뫼B우스 2023. 5. 1. 18:38
반응형

https://docs.manim.community/en/stable/installation/macos.html#

 

macOS

For the sake of simplicity, the following instructions assume that you have the popular package manager Homebrew installed. While you can certainly also install all dependencies without it, using H...

docs.manim.community

위 사이트에서 설치를 따라서 설치를 하지만

 

처음 설치할 경우 에러가 발생할 수 있다.

 

종속성 패키지를 설치한 다음 

 

pip3 install manim

 

설치할 경우 다음과 같은 에러가 발생할 수 있다.

 

"fatal error: 'cairo.h' file not found "

 

https://github.com/ManimCommunity/ManimPango

 

위 사이트에 자세한 정보가 나온다.

 

해결

brew install pango pkg-config

 

이후 다시 

pip3 install manim 

 

설치하면 성공할 수 있다.

 

 

반응형