指定 python setup.py 安装的头文件位置

Flo*_*ciu 5 python gcc header-files setup.py

基本上标题已经说明了一切。我有一个库头文件的非标准路径,需要将其包含在 python 安装脚本的搜索路径中。

Flo*_*ciu 1

export CPLUS_INCLUDE_PATH=/path/to/desired/include/directory只需重新运行安装脚本即可。