Tcl error : invalid command name tcl_findLibrary

谁都会走 提交于 2019-12-02 09:21:18

问题


This error appears when I type the following commands (using iPython)Tkinter.Tk(), %pylab, plot ..... or run pylab in general but import pylab doesn't fire any error.

Tcl error : invalid command name tcl_findLibrary

As I know Python installers for Windows already contain a full Tcl/Tk installation so i didn't use anything other than the regular Python installer.

The OS is x64 but I use the x32 installer as some extra python libraries don't have x64 version.

Python 2.7.5 x32 OS: Windows7-x64


回答1:


I've figured it out, I needed to remove tcl_library and tk_library from the environment variables. Although before putting them pylab fired an error saying something like it couldn't find some tcl files, and putting them solved that error but fired this one.



来源:https://stackoverflow.com/questions/17563174/tcl-error-invalid-command-name-tcl-findlibrary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!