Python3: No module named ‘_tkinter’解决

2019-09-12更新: 参考: https://www.z1987.com/blog/detail/c1570f5604fbcee5020dd8a5fabf01d0 发现个更简单的做法:

我的是Python7.6, 故安装:

  旧: 在实验用networkx画图时, 在执行如下命令时报错:

环境介绍 centos: 7.6.1810 Python: 3.7.4 基于virutalenv来切换不同的Python环境 什么是tkinter, tcl ,tk The tkinter package (“Tk interface”) is the standard Python interface to the Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, as well Read more…