即使我安装了较新的版本,IDLE 也会对旧的 TCL 版本发出警告 [英] IDLE warns against an old TCL version even though I've installed a newer version

查看:26
本文介绍了即使我安装了较新的版本,IDLE 也会对旧的 TCL 版本发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的 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.

为什么 IDLE 无法识别我安装的较新的 ActiveTcl 版本?我该如何纠正?

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

推荐答案

根据 python官方网站上的在Mac OS X上使用Tcl/Tk进行IDLE和tinter"页面,

从本网站下载的 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.

好像是这样

  1. 当前 OS X 的 Python 安装无法识别最新的 ActiveTcl 版本(即 8.6).
  2. python 使用的 Tcl/Tk 版本在 python 安装过程中是硬连线的,以后无法更改.

根据这些观察,解决方案很清楚:

From these observation the solution is clear:

  1. 安装最新的 8.5 ActiveTcl 版本.
  2. 重新安装 python.

我已按照这些步骤操作,现在似乎一切正常.

I have followed these steps and now everything seems to work.

这篇关于即使我安装了较新的版本,IDLE 也会对旧的 TCL 版本发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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