plt.figure()
报错:no display name and no $DISPLAY environment variable
解决方法:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
参考:https://zhang0peter.blog.csdn.net/article/details/83627705
2022-09-10 18:53:53
plt.figure()
报错:no display name and no $DISPLAY environment variable
解决方法:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
参考:https://zhang0peter.blog.csdn.net/article/details/83627705
下一篇:满二叉树遍历