缺少reportlab依赖项的头文件

2024-04-25 00:30:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在Mac OS X El Capitan上安装依赖项:

pip install reportlab

但我得到一个错误:

/Users/user/anaconda/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found

#include <freetype/config/ftheader.h>

     ^

1 error generated.

error: command 'gcc' failed with exit status 1

在这种情况下,丢失的头文件有什么问题?你知道吗


Tags: installpipconfigincludeosmac错误error
1条回答
网友
1楼 · 发布于 2024-04-25 00:30:09

我意识到安装程序正在目录中查找标头:

'user/anaconda/include/freetype/config/ftheader.h'

但文件在目录里

'user/anaconda/include/freetype2/freetype/config/ftheader.h'

所以我把目录“freetype”复制到

'user/anaconda/include/'

'

相关问题 更多 >