python - 导入龟模块

时间:2015-05-11 18:07:59

标签: python python-2.7

每当我导入turtle时,我都会收到此错误

>>> import turtle
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/lib-tk/turtle.py", line 107, in <module>
    import Tkinter as TK
  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

如何获取turtle模块?

0 个答案:

没有答案