我正在为matplotlib执行this示例文件,当我正常退出主窗口时遇到以下错误。在
Fatal Python error: deallocating None
我只修改了以下几行,因为我想使用PySide2而不是PyQt。在
原件:
^{pr2}$新增:
# Make sure that we are using QT5
matplotlib.use('Qt5Agg')
matplotlib.rcParams['backend.qt5']='PySide2'
from PySide2 import QtCore, QtWidgets
这个程序在其他方面运行得很好,当我关闭它时它就会崩溃,这有点烦人。在
我的环境包括:
有什么想法吗?在
参考这篇文章https://stackoverflow.com/a/49712824/6704496,它似乎是一个不是最新的版本错误。请下载最新的轮子http://download.qt.io/snapshots/ci/pyside/5.9/latest/。在
相关问题 更多 >
编程相关推荐