首页 > 编程语言 >Python3 ImportError: No module named '_tkinter'

Python3 ImportError: No module named '_tkinter'

时间:2023-02-06 18:04:37浏览次数:57  
标签:named tkinter No module File line


Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/tkinter/__init__.py", line 35, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'

解决:

sudo apt-get install python3-tk


标签:named,tkinter,No,module,File,line
From: https://blog.51cto.com/u_15955675/6040041

相关文章