python便携版安装tk,Python安装中的Tcl / tk版本

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

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

python -m idlelib.idle

gives next output:

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

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 is located both in C:\Python33\tcl\tcl8.5 and C:\Python33\tcl\tix8.4.3 but something preventing tkinter from starting.

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

"Tcl": have 8.5.11, need exactly 8.4

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?

Thank you in advance.

解决方案

Solved.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值