即使我安装了较新的版本,IDLE也会针对旧的TCL版本发出警告 [英] IDLE warns against an old TCL version even though I've installed a newer version
问题描述
我已经在OS X 10.9.1上安装了ActiveTcl8.6.1.1.297588-macosx10.5-i386-x86_64-threaded
.但是,当我从终端运行idle3
来启动IDLE时,IDLE窗口中会显示以下警告:
I have installed ActiveTcl8.6.1.1.297588-macosx10.5-i386-x86_64-threaded
on my OS X 10.9.1 . However, when I launch IDLE by running idle3
from the terminal, the following warning shows in the IDLE window:
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information.
为什么我安装的较新的ActiveTcl版本无法被IDLE识别?我该如何纠正?
Why is the newer ActiveTcl version that I have installed not recognized by IDLE? How can I rectify this?
更多详细信息.
$ echo $PATH
/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
$ which tclsh
/usr/bin/tclsh
$ ls -l /usr/bin/tclsh*
lrwxr-xr-x 1 root wheel 17 Jan 15 10:45 /usr/bin/tclsh -> /usr/bin/tclsh8.6
lrwxr-xr-x 1 root wheel 67 Oct 25 19:59 /usr/bin/tclsh8.4 -> ../../System/Library/Frameworks/Tcl.framework/Versions/8.4/tclsh8.4
lrwxr-xr-x 1 root wheel 67 Oct 25 19:59 /usr/bin/tclsh8.5 -> ../../System/Library/Frameworks/Tcl.framework/Versions/8.5/tclsh8.5
lrwxr-xr-x 1 root wheel 23 Jan 15 10:45 /usr/bin/tclsh8.6 -> /usr/local/bin/tclsh8.6
$ ls -l /usr/local/bin/tclsh*
lrwxr-xr-x 1 root admin 8 Jan 15 10:40 /usr/local/bin/tclsh -> tclsh8.6
-rwxr-xr-x 1 root admin 41716 Oct 27 04:45 /usr/local/bin/tclsh8.6
推荐答案
According to the "How Python Chooses Which Tk Library To Use" section of the "IDLE and tinter with Tcl/Tk on Mac OS X" page on the official python website,
从此网站下载的Python for Mac OS X安装程序在运行时动态链接到Tcl/Tk Mac OS X框架. Tcl/Tk主版本是在创建安装程序时确定的,无法覆盖.用于Python 3.4.x,3.3.x,3.2.x和2.7.x的Python 64位/32位Mac OS X安装程序可动态链接到Tcl/Tk 8.5框架.
The Python for Mac OS X installers downloaded from this website dynamically link at runtime to Tcl/Tk Mac OS X frameworks. The Tcl/Tk major version is determined when the installer is created and cannot be overridden. The Python 64-bit/32-bit Mac OS X installers for Python 3.4.x, 3.3.x, 3.2.x, and 2.7.x dynamically link to Tcl/Tk 8.5 frameworks.
看来
- 当前用于OS X的python安装无法识别最新的ActiveTcl版本(即8.6).
- python使用的Tcl/Tk版本在python安装过程中是硬连线的,以后不能更改.
从这些观察中,解决方案很清楚:
From these observation the solution is clear:
- 安装最新的8.5 ActiveTcl版本.
- 重新安装python.
我已经按照这些步骤操作,现在一切似乎都可以正常工作.
I have followed these steps and now everything seems to work.
这篇关于即使我安装了较新的版本,IDLE也会针对旧的TCL版本发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!