求助!
1个回答
这种错误
RuntimeError: Invalid DISPLAY variable
可以在import的时候试试下面的代码,加上agg
import matplotlib.pyplot as plt
plt.switch_backend('agg')
谢谢!改好了。
-
默默
2018-04-14 15:45
求助!
这种错误
RuntimeError: Invalid DISPLAY variable
可以在import的时候试试下面的代码,加上agg
import matplotlib.pyplot as plt
plt.switch_backend('agg')