Robust Python 3 Installation on Mac?

Posted by tmwilliams949 on 2014-03-15 18:55

I am trying to achieve a robust Python 3 installation.
This is for learning and personal use only.
My starting point is a MacBook Air with OS X 10.9.2.
From the terminal window Python 2.7.5 works fine.
I installed Python 3.3.5 from python.org
IDLE sees Tcl/Tk 8.5.9 which it reports to be potentially unstable
I installed the recommended ActiveTcl 8.6.1
Python 3.3.5 still sees Tcl/Tk 8.5.9.
Finding that the binding is supposed to be dynamic upon installation I uninstalled Python 3.3.5
I reinstalled Python 3.3.5
Python 3.3.5 still sees Tcl/Tk 8.5.9.
I uninstalled Python 3.3.5 again
I installed ActivePython 3.3.2.0 (remember that ActiveTcl 8.6.1 is still installed)
AcivePython 3.3.2.0 still reports TclTk 8.5.9 in use and potentially unstable.
Other than giving thanks that I am not trying to make any money doing this, what next?

grahams
ActiveState Staff
Mon, 2014-03-17 15:06

On your OS X machine, the 8.5.9 Tcl is probably the one provided by Apple, as ActiveTcl 8.5.9 was discontinued quite a few years ago.

>I installed the recommended ActiveTcl 8.6.1
The recommended Tcl is ActiveTcl, but not 8.6.1. Tkinter is compiled to use an 8.5 Tcl. It can't use 8.6 yet.
You should use ActiveTcl 8.5.15. There is also a post-installation configuration step in the installation instructions to set up your PATH variable, which users sometimes miss.

tmwilliams949 | Mon, 2014-03-17 15:33

I looks like I'll need to uninstall the 8.6 version but I don't see an uninstall option. How do i back out the 8.6 installation, please? /Tom

tmwilliams949 | Mon, 2014-03-17 16:03

i just deleted the /Library/Frameworks/Tk* and /Tcl* and ran the 8.1.15.1 and the warning seems to be gone now. Yay!
Now, can you tell me where I can find out how to do the following?
# If you use the Bash shell (the default on Mac OS 10.3 and up) place
# the following in your ~/.bashrc file.
PATH=/usr/local/bin:$PATH; export PATH
Thanks. /Tom

duncan00 | Sat, 2014-04-19 03:49

>Now, can you tell me where I can find out how to do the following?
># If you use the Bash shell (the default on Mac OS 10.3 and up) place
># the following in your ~/.bashrc file.
>PATH=/usr/local/bin:$PATH; export PATH
>Thanks. /Tom

In Terminal:
$ cd ~
$ touch .bashrc
$ open -e .bashrc
This will open the ~/.bashrc file in TextEdit
In TextEdit:
paste `PATH=/usr/local/bin:$PATH; export PATH` into the file
Save the file
In Terminal:
$ source .bashrc

While a system restart should not be required it is never a bad idea to do one at this point if you can spare the time.

grahams
ActiveState Staff
Wed, 2014-04-23 12:54

There is also an un-install convenience script that is mentioned in the Installation Guide.
http://docs.activestate.com/activetcl/8.6/at.install.html#uninstall
Mavericks is one of the OSX versions that prevents the uninstall script from unpacking with the correct permissions to run. It can be worked around by manually setting permissions with sudo and chmod.