Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下场景:自定义 C++ 库应该通过 boost::python 嵌入 Python。这个库应该与不同的包装器静态链接,这些包装器允许该库与 .NET 框架、其他语言以及 Python 本身一起使用。
在包装库以使其最终成为 Python C 扩展的情况下,库本身嵌入 Python 解释器这一事实是否会成为问题?
此外,如果嵌入式 Python 版本与导入扩展的解释器版本不匹配,会产生什么后果?
亲切的问候,丹尼尔