“Cannot create a QWidget without QApplication” in plt.figure() in Python's matplotlib when used in combination with ovito library

前端 未结 0 748
甜味超标
甜味超标 2021-01-17 08:25

The following code, executed with Python 3.8, fails

import matplotlib.pyplot as plt
import ovito

plt.figure()
# QWidget: Cannot create a QWidget without QApp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题