Matplotlib Build Problem: Error C1083: Cannot open include file: 'ft2build.h'

后端 未结 11 2523
广开言路
广开言路 2020-12-03 02:24

ft2build.h is located here:

C:\\Program Files\\GnuWin32\\include

Initially, I made the same mistake as here:

Fatal

11条回答
  •  执笔经年
    2020-12-03 03:17

    I was able to solve this on Windows by doing the following:

       set INCLUDE=%INCLUDE%;C:\tmp\msvcr90-x32
       set LIB=%LIB%;C:\tmp\msvcr90-x32
       pip.exe install matplotlib
    

    The link libraries for Freetype on windows can be found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib (from meawoppl's comment)

    Just download the "matplotlib‑1.x‑windows‑link‑libraries.zip", and open the README from the zip.

提交回复
热议问题