gpt4 book ai didi

c++ - Boost 和 Python 3.x

转载 作者:IT老高 更新时间:2023-10-28 20:33:59 25 4
gpt4 key购买 nike

boost.python 如何处理 Python 3?只有 Python 2 吗?

最佳答案

较新版本的 Boost 应该可以在 Python V3.x 上正常工作。这种支持是在很久以前添加的,我相信在 2009 年成功的 Google Summer of Code 项目之后。

将 Python V3 与 Boost 一起使用的方法是通过添加实例来正确配置构建系统:

using python : 3.1 : /your_python31_root ;

到您的 user-config.jam 文件。

关于c++ - Boost 和 Python 3.x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5539557/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com