【问题标题】:Missing header file for reportlab dependency缺少报告实验室依赖项的头文件
【发布时间】:2016-04-04 18:40:20
【问题描述】:

我正在尝试在 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

在这种情况下缺少头文件有什么问题?

【问题讨论】:

    标签: python dependencies


    【解决方案1】:

    我意识到安装是在目录中寻找头文件:

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

    但文件在目录中

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

    所以我只是将目录'freetype'复制到

    'user/anaconda/include/'
    

    '

    【讨论】:

      猜你喜欢
      • 2020-01-30
      • 2021-08-13
      • 1970-01-01
      • 1970-01-01
      • 2020-11-21
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多