IDLE warns against an old TCL version even though

2019-01-06 22:05发布

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.

Why is the newer ActiveTcl version that I have installed not recognized by IDLE? How can I rectify this?

EDIT: Further details.

$ 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

8条回答
The star\"
2楼-- · 2019-01-06 22:57

I had this same issue after launching IDLE on OSX 10.10 with python 2.7.9 / 3.4.1 installed (and seeing the same $PATH variable information as the original poster).

I went to this python support page:

I referenced their "summary of current recommendations" chart to determine the Tcl/Tk necessary; it linked to a downloadable .DMG, which I installed and then IDLE ran without warnings.

I did not have to reinstall python.

查看更多
在下西门庆
3楼-- · 2019-01-06 22:57

How I resolved the issue:

First we need to install ActiveTcl8.5.18.0

  1. Download: https://www.activestate.com/activetcl/downloads

enter image description here

  1. Run the file that you downloaded.

  2. CTRL+CLICK (both Mac and Windows) to open a context-menu. If you get an error can't be opened, because it is from unidentified developer - you need to CTRL+CLICK, don't double-click.

enter image description here

  1. Click Open in the context-menu.
  2. Click Open in the pop-up dialog (the left, NON-blue button)
  3. Install.

If that does not resolve the issue, we need to uninstall python. This article really helped me.

查看更多
登录 后发表回答