Manim: Can't find cairo.h when I installing

Created on 3 Dec 2018  ·  6Comments  ·  Source: 3b1b/manim

creating build\temp.win32-3.6\Release\cairo
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=18 -DPYCAIRO_VERSION_MICRO=0 "-Id:\program files (x86)python36-32include" "-Id:\program files (x86)python36-32include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.16.27023\ATLMFCinclude" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC14.16.27023include" "-IC:\Program Files (x86)\Windows Kits10include10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits10include10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits10include10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits10include10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits10include10.0.17763.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.6\Release\cairo/device.obj
device.c
c:\users\w1381\appdata\local\temp\pip-install-cbmw3xgl\pycairo\cairo\pycairo.h(37): fatal error C1083: 无法打开包括文件: “cairo.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe' failed with exit status 2


Failed building wheel for pycairo

Most helpful comment

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo
install it. all thing will be done.

All 6 comments

This looks like the same problem from #353.

Installing cairo on windows is a pain in the ...
Try this:

  1. Install GTK2/3 from here: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases
  2. Add 'bin' folder from GTK installation path to PATH environment variable (on top!)

src: https://stackoverflow.com/questions/38556368/getting-oserror-dlopen-failed-to-load-a-library-cairo-cairo-2-on-windows

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo
install it. all thing will be done.

How do you do this? I'm on windows 10 and python 2.7 and it says
pycairo-1.18.0-cp37-cp37m-win32.whl is not a supported wheel on this platform.

Also tried with pycairo-1.18.0-cp37-cp37m-win_amd64.whl

Note that manim currently uses Python 3.7. Version 2.7 will not work with this. Once you update to 3.7, use pycairo-1.18.0-cp37-cp37m-win32.

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo
install it. all thing will be done.

It works. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purusharths picture purusharths  ·  4Comments

Sir-Teo picture Sir-Teo  ·  6Comments

GrouperTamaki picture GrouperTamaki  ·  5Comments

nosnakeob picture nosnakeob  ·  6Comments

Planeuge picture Planeuge  ·  6Comments