[Tkinter-discuss] Python 3 and Tcl/tk on mac os

Ned Deily nad at acm.org
Sat Apr 30 00:27:01 CEST 2011


In article <BANLkTi=4D5sFZp4jZAqGsy8GEtYSEp-ong at mail.gmail.com>,
 Georges Arsouze <georges.arsouze at gmail.com> wrote:
> I'm sorry. The is something i don't understand
> I have the latest version for mac os 10.6.7 of TCl/TK on my computer
> (version 8.6.0.0b5) (in Library/Frameworks/Tcl.framework
> and Library/Frameworks/Tk.framework)
> I want to use this version of TCL/TK with Python 3.1
> Can you explain me what source file (python 3.1) i must download and how I
> compile it manually so that the installation goes in
> Library/Frameworks/Python.framework)

I do not recommend that you try to build with Tcl/Tk 8.6.  As far as I 
know, it has received very little, if any exposure, with Python on OS X. 
It is also somewhat tricky to correctly build all the pieces of a Python 
framework from source on OS X.  I highly recommend that you use a 
packaged Python install: either a binary installer from python.org or 
built using a package management system from one of the third-party OS X 
package distributors: MacPorts, Homebrew, or Fink.  It may take a little 
effort to get familiar with how any of them work but it will pay off in 
the long run when you need to install Python packages that depend on 
third-party libraries (things like MySQLdb or PIL).   Of the three, I 
have the most experience with MacPorts so I tend to recommend it but any 
of the three will do the job.  Currently, the MacPorts Tcl/Tk, as used 
by its Pythons, is an X11-based one rather than the Aqua Tk like shipped 
by Apple and ActiveState.  Unfortunately, due to the various problems 
with the Aqua Tk 8.5's available today, it may be worth considering 
using the X11-based one.  It's definitely not native looking on OS X but 
it seems to be more stable.

http://www.python.org/download/mac/tcltk/
http://www.macports.org/
http://mxcl.github.com/homebrew/
http://www.finkproject.org/

-- 
 Ned Deily,
 nad at acm.org



More information about the Tkinter-discuss mailing list