caffe编译 `make pytest` 出错:`fatal error: 'pyconfig.h' file not found`

来源:互联网 发布:美工电脑是什么意思 编辑:程序博客网 时间:2024/05/29 19:47

找到你的pythonfig.h的位置,Mac下可以使用命令:

locate pyconfig.h

得到位置:/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h

然后在当前终端中输入(要对应地址):

export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/"

不再出现该错误。

阅读全文
0 0
原创粉丝点击