ImportError: No module named _tkinter

来源:互联网 发布:redhat和ubuntu的区别 编辑:程序博客网 时间:2024/05/21 10:00

ImportError: No module named _tkinter

今天刚刚在VMware虚拟机中安装完Ubuntu 16.04,在测试预置的python是否能够正常使用的时候,遇到如题的报错。
已经确认测试使用的程序代码在windows系统下能够正常运行。
ImportError及解决过程

如上图所示,在报错信息后系统给出了可能的解决方法:install the python-tk package.
因此输入命令:

sudo apt-get install python-tk

根据提示安装完毕即可解决上述报错。

0 0
原创粉丝点击