我正在和一群老师一起使用Canopy,我们正在尝试使用Tkinter。当我们运行导入Tkinter的代码时,大约一半的类收到错误消息。我们得到的错误消息是:
TclError: Can't find a usable init.tcl in the following directories:
C:/Users/tg9154/AppData/Local/Enthought/Canopy/App/appdata/canopy-1.5.4.3105.win-x86_64/lib/tcl8.5 C:/Users/tg9154/AppData/Local/Enthought/Canopy/User/lib/tcl8.5 C:/Users/tg9154/AppData/Local/Enthought/Canopy/lib/tcl8.5 C:/Users/tg9154/AppData/Local/Enthought/Canopy/User/library C:/Users/tg9154/AppData/Local/Enthought/Canopy/library C:/Users/tg9154/AppData/Local/Enthought/Canopy/tcl8.5.2/library C:/Users/tg9154/AppData/Local/Enthought/tcl8.5.2/library
This probably means that Tcl wasn't installed properly.我已经尝试了我在网上找到的所有修复程序,但都不起作用。我想知道完全卸载/安装是否可以工作,但我希望有一个更容易的修复,因为我有这么多的老师谁将不得不做同样的事情。
发布于 2015-07-13 23:41:38
Windows中的Canopy 1.5.3/1.5.4中的此错误已在7月3日发布的Canopy 1.5.5中修复。要更新到当前版本的Canopy,请参阅this article。
https://stackoverflow.com/questions/31385952
复制相似问题