Ubuntu 16.04
Python 3.6.1 (there are both py2 and py3 in my system)
(Note: run for python2, no error
)
Matplotlib
can’t plot the image
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
plt.show()
python3.6:
pip3 uninstall matplotlib
pip3 install matplotlib
sudo apt-get install python3.6-tk
Note:
run python3-tk
, doesn’t work
I don’t need matplotlib.use("TkAgg")
https://www.pyimagesearch.com/2015/08/24/resolved-matplotlib-figures-not-showing-up-or-displaying/