__import__(name) File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in <module> import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' 针对这个问题,发现ubuntu的显示环境依赖的是tk,因此需要进行各种库的安装。