python-2.7 - 在 Mac 上找不到“pyconfig.h”文件
问题描述
构建外壳:
g++ -I/usr/lib/python2.7 Test.cpp -lpython2.7 -lboost_python
错误信息:
In file included from Test.cpp:1:
In file included from ./Test.h:7:
In file included from /usr/local/include/boost/python.hpp:11:
In file included from /usr/local/include/boost/python/args.hpp:8:
In file included from /usr/local/include/boost/python/detail/prefix.hpp:13:
/usr/local/include/boost/python/detail/wrap_python.hpp:57:11: fatal error:
'pyconfig.h' file not found
解决方案
推荐阅读
- laravel - 难以将数据从控制器传递到路由
- sql - SQL Server 组按最大日期
- html - 显示在 div 外的文本
- python - “ValueError:所有输入数组必须具有相同的形状”当 one-hot 编码 DNA 序列时
- unit-testing - React/TypeScript 的 Jest 配置问题
- python - 查找元素的总和
- python - PyQt5 未检测到 Cosmographia 窗口(Cosmoscripting 导入)
- reactjs - 反应中的相同vue功能
- laravel - 如何将搜索结果更改为友好的网址
- php - 如何在颤动中从网络获取图片