Tcl 错误:无效的命令名称 tcl_findLibrary [英] Tcl error : invalid command name tcl_findLibrary

查看:138
本文介绍了Tcl 错误:无效的命令名称 tcl_findLibrary的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入以下命令(使用 iPython)Tkinter.Tk(), %pylab, plot ..... 或一般运行 pylab 但 import pylab 不会触发任何错误.

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

据我所知,Windows 的 Python 安装程序已经包含完整的 Tcl/Tk 安装,所以除了常规的 Python 安装程序之外,我没有使用任何其他东西.

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.

操作系统是 x64,但我使用 x32 安装程序,因为一些额外的 python 库没有 x64 版本.

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操作系统:Windows7-x64

Python 2.7.5 x32 OS: Windows7-x64

推荐答案

我已经弄清楚了,我需要从环境变量中删除 tcl_library tk_library .虽然在放置它们之前 pylab 触发了一个错误,说它找不到一些 tcl 文件,并且放置它们解决了该错误但触发了这个错误.

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.

这篇关于Tcl 错误:无效的命令名称 tcl_findLibrary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆