我刚刚在OSX10.8.4上得到了Tkinter的工作,其中安装了Python的Python2.7.5。 我现在可以用
import Tkinter
或者
^{pr2}$而且似乎有效(没有错误消息)。在
现在我尝试创建一个显示。我知道:
window = Tk()
在这一点上我得到:
TclError Traceback (most recent call last)
<ipython-input-5-711542866473> in <module>()
----> 1 fenetre = Tk()
/Users/geoffroysarrazin/anaconda/lib/python2.7/lib-tk/Tkinter.pyc in __init__(self, screenName, baseName, className, useTk, sync, use)
1743 baseName = baseName + ext
1744 interactive = 0
-> 1745 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
1746 if useTk:
1747 self._loadtk()
TclError: Can't find a usable init.tcl in the following directories:
/opt/anaconda1anaconda2anaconda3/lib/tcl8.5
/Users/geoffroysarrazin/anaconda/python.app/Contents/lib/tcl8.5
/Users/geoffroysarrazin/anaconda/python.app/lib/tcl8.5
/Users/geoffroysarrazin/anaconda/python.app/Contents/library
/Users/geoffroysarrazin/anaconda/python.app/library
/Users/geoffroysarrazin/anaconda/python.app/tcl8.5.13/library
/Users/geoffroysarrazin/anaconda/tcl8.5.13/library
This probably means that Tcl wasn't installed properly.
我试着安装ActiveTcl8.5.14.0,但没有改变。我甚至不知道这个目录是什么
/opt/anaconda1anaconda2anaconda3/lib/tcl8.5
实际上是。。。在
目前没有回答
相关问题 更多 >
编程相关推荐