mac安装pybind11产生的问题

直接用brew install pybind11
1./usr/local/include/pybind11/detail/common.h:122:10: fatal error: 'Python.h' file not found 源于common.h里面使用的是#include<Python.h>,要改为#include <Python/Python.h>,其他2个文件,也在前面加Python路径就好了

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务