小编fir*_*ter的帖子

找不到 OSX 10.8 PIP matplotlib 'freetype/config/ftheader.h' 文件

如果已经讨论过这个话题,我提前道歉。我的情况似乎与其他情况略有不同,因此我的文件路径不同。尝试在 Mac OS X 10.8.5 上安装 matplotlib 时,返回以下错误:

pip install matplotlib
# lots of install details here...
/usr/X11/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found
#include <freetype/config/ftheader.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/matplotlib/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ohMPzS-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/matplotlib
Storing debug log for failure in /Users/administrator/Library/Logs/pip.log
Run Code Online (Sandbox Code Playgroud)

我的 Homebrew 安装了以下内容:

fontconfig
gfortran
jpeg
libtiff
pkg-config
freetype …
Run Code Online (Sandbox Code Playgroud)

python matplotlib macos

3
推荐指数
1
解决办法
3279
查看次数

标签 统计

macos ×1

matplotlib ×1

python ×1