Python安装中的Tcl/tk版本 [英] Tcl/tk version in Python installation

查看:556
本文介绍了Python安装中的Tcl/tk版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要熟悉Python-Tcl/tk软件包的人的帮助.

I need the help of those who familiar with Python-Tcl/tk bundle.

我无法为Python 3.2.3或3.3.0安装启动IDLE IDE.命令

I cannot start IDLE IDE for Python 3.2.3 or 3.3.0 installation. Command

python -m idlelib.idle

给出下一个输出:

   C:\Python33>python -m idlelib.idle
   Traceback (most recent call last):
   File "C:\Python33\lib\runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python33\lib\runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "C:\Python33\lib\idlelib\idle.py", line 11, in <module>
    idlelib.PyShell.main()
  File "C:\Python33\lib\idlelib\PyShell.py", line 1421, in main
    root = Tk(className="Idle")
  File "C:\Python33\lib\tkinter\__init__.py", line 1756, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    {C:\Program Files\CSR\BlueSuite 2.4} C:/Python33/lib/tcl8.5 C:/lib/tcl8.5 C:
/lib/tcl8.5 C:/library C:/library C:/tcl8.5.11/library C:/tcl8.5.11/library

Init.tcl位于 C:\ Python33 \ tcl \ tcl8.5 C:\ Python33 \ tcl \ tix8.4.3 中,但有一些阻止tkinter开始.

Init.tcl is located both in C:\Python33\tcl\tcl8.5 and C:\Python33\tcl\tix8.4.3 but something preventing tkinter from starting.

在先前尝试通过命令行启动idlelib.idle模块的过程中,我收到了消息

During previous attempts to start idlelib.idle module form command line I got the message

 "Tcl": have 8.5.11, need exactly 8.4 

所以这是我无法通过的阶段.是什么系统可能迫使我使用Tcl 8.4并阻止使用随Python 3.3.0一起安装的8.5.11?

So this is a stage I can't pass. What is the system may force me to use Tcl 8.4 and prevent from using 8.5.11 installed with Python 3.3.0?

谢谢.

推荐答案

已解决.

我必须删除环境变量TCL_LIBRARY,该变量指向某些不存在的安装.

I had to remove environment variable TCL_LIBRARY, which pointed to some non-existent installation.

这篇关于Python安装中的Tcl/tk版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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