学Python配置完了VScode,在安装easygui后遇到了一些问题。
代码如下:import easygui
easygui.msgbox("Hello world.")
Ctrl+Shift+B,运行报错,报错如下:Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in
import _tkinter
ImportError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/hongludianxue/.local/lib/python3.5/site-packages/easygui/boxes/utils.py", line 29, in
import tkinter as tk # python3
File "/usr/lib/python3.5/tkinter/__init__.py", line 38, in
raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter&