【发布时间】:2019-12-06 06:02:28
【问题描述】:
我正在尝试在我的 ubuntu 上构建 boost python 库。但是,当我执行
./b2 --with-python
它总是返回与
相关的错误./boost/python/detail/wrap_python.hpp:57:11: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^~~~~~~~~~~~
我尝试在网上查找,例如https://github.com/boostorg/build/issues/289
按照他们的建议检查我的“project-config.jam” 我发现了
# Python configuration
import python ;
if ! [ python.configured ]
{
using python : 3.7 : /home/lowlimb/anaconda3 :/home/lowlimb/anaconda3/include/python3.7m;
}
这是正确的,因此我真的不知道如何解决这个问题。 谁能给我一些建议?
【问题讨论】:
标签: python c++ ubuntu boost boost-python