以下解决办法来自于stackoverflow
PS: I found out that by adding:
import matplotlib
matplotlib.use('TkAgg')
before import matplotlib.pyplot
或者
Add a line:
backend: TkAgg
in file:
~/.matplotlib/matplotlibrc
This solved the problem.
以下解决办法来自于stackoverflow
PS: I found out that by adding:
import matplotlib
matplotlib.use('TkAgg')
before import matplotlib.pyplot
或者
Add a line:
backend: TkAgg
in file:
~/.matplotlib/matplotlibrc
This solved the problem.