tkinterquickhelper (1.5.18) - Helpers for tkinter, extra windows.
tkintertable (1.2) - Extendable table class for Tkinter
.......................
于是尝试直接安装tkinter,结果没有发现tkinter包
> pip3 install tkinter
Collecting tkinter
Could not find a version that satisfies the requirement tkinter (from versions: )
No matching distribution found for tkinter
什么是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 as on Windows systems. (Tk itself is not part of Python; it is maintained at ActiveState.) You can check that tkinter is properly installed on your system by running python -m tkinter from the command line; this should open a window demonstrating a simple Tk interface.
上述文件摘自Python社区:https://docs.python.org/3/library/tkinter.html
If this fails your Python may not be configured for Tk
或许这里的问题,根本不是tkinter没有安装,或者被正确安装完成,而是没有被正确的配置好。目前tcl/tk的内容都已经安装好了,只是在python中没有配置好,但是python3-tk之类的都已经安装了,但是问题并没有被解决。如果这样,那就重新安装Python运行环境吧。
解决办法:找到python的安装路径
./configure --with-ssl #重新编译
make
make install
然后就能导入成功了