Ubuntu环境下No module named '_tkinter'错误的解决
在Ubuntu环境下运行下面代码:
import matplotlib as plt
出现以下错误:
No module named '_tkinter'
解决方法:
sudo apt-get install python3-tk
import matplotlib as plt
No module named '_tkinter'
sudo apt-get install python3-tk