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/C++ 函数的 python3 应用程序。在其中一个 C++ 函数中,我想运行一个 python 解释器。它不必处理第一个 python 环境,它们完全分离。
我绑定使用嵌入 pybind 解释器,但出现以下错误“解释器已在运行”
我用它从C调用python函数
https://www.geeksforgeeks.org/calling-python-from-c-set-1/
和
https://www.geeksforgeeks.org/calling-python-from-c-set-2/