我只是在我的c++嵌入式python编辑器中添加了子解释器,这样每次执行都有一个干净的解释器。在
PyThreadState* tmpstate = Py_NewInterpreter();
PyThreadState_Swap(tmpstate);
... run the script ...
Py_EndInterpreter(tmpstate);
我自己的模块正在工作,我测试了numpy没有任何问题。问题在于matplotlib
如果我第一次运行的话一切都很好。第二次我得到:
^{pr2}$
Tags:
这似乎是Python3.3中的一个错误:http://bugs.python.org/issue17408
问题是:
相关问题 更多 >
编程相关推荐