报错 tkinter # If this fails your Python may not be configured for Tk
解决:
1.找到虚拟环境使用的python环境路径
2.下载对应版本python压缩包,并将其编译到上述位置
3.试运行,若报错Can It find a usable tk.tcl in the following directories: /usr/local/tcl/lib/tcl8.4/tk8.4
sudo mkdir -p /usr/local/lib/tk8.6
sudo cp -r /usr/share/tcltk/tk8.6/* /usr /local/lib/tk8.6/
4.问题解决