3b1b / manim

Animation engine for explanatory math videos
MIT License
70.4k stars 6.19k forks source link

Can't find cairo.h when I installing #359

Open lucyliu2016 opened 5 years ago

lucyliu2016 commented 5 years ago

creating build\temp.win32-3.6\Release\cairo C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.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-32\include" "-Id:\program files (x86)\python36-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.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

eulertour commented 5 years ago

This looks like the same problem from #353.

utsurius commented 5 years ago

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

liyiliuxingyu commented 5 years ago

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

springjools commented 5 years ago

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

yoshiask commented 5 years ago

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.

AlbertSeeWhy commented 4 years ago

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

It works. Thanks.