【发布时间】:2011-11-13 18:08:36
【问题描述】:
导入 Tkinter 时出现以下错误:
Python 2.7.1 (r271:86832, Jun 11 2011, 11:34:27)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>>
我该怎么办?
【问题讨论】:
标签: python