PYQT5的UI转换报错:fatal python error: _pyinterpreterstate_get(): no current thread state解决办法

使用QT可视化工具设计界面,在将UI文件转换为py文件的时候报错:

fatal python error: _pyinterpreterstate_get(): no current thread state python run

原因可能是python版本与QT不兼容,具体原因不知道

解决办法:使用以下配置将UI转换为py,再将py文件给其它程序调用

python版本:3.7.1

pyqt5版本:5.11.3

pyqt5-tools版本:5.11.3.1.4

按此配置生成的UI文件转换可成功

详细配置参考:PyCharm中Qt Designer+PyUIC配置 - 知乎

你可能感兴趣的:(python,ui,qt,python)