Ubuntu下python3安装tkinter包

  • case1:

首先sudo apt-get update(如果不更新很有可能找不到tkinter),
然后sudo apt-get install python3-tk,安装完成后就可以使用了。

  • case2:

完美解决ImportError: No module named _tkinter的问题

文中所有的python改为python3

 

posted @ 2017-11-18 12:36  TQCAI  阅读(10761)  评论(0编辑  收藏  举报