无法构建boost python库(致命错误:pyconfig.h:没有此类文件或目录)

2024-10-04 01:33:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在我的ubuntu上构建boost python库。但是,当我执行

./b2 --with-python

它总是返回与

^{pr2}$

我试着在网上查找,例如,https://github.com/boostorg/build/issues/289

按照他们的建议我检查我的“项目”-配置堵塞" 我发现

# Python configuration
import python ;
if ! [ python.configured ]
{
    using python : 3.7 : /home/lowlimb/anaconda3 :/home/lowlimb/anaconda3/include/python3.7m;
}

这是正确的,所以我真的不知道如何解决这个问题。 谁能给我一些建议吗?在


Tags: httpsbuildgithubcomhomeubuntuwithb2