MacPython 3.0.1 installation problem, no /usr/local/bin/python*

Ned Deily nad at acm.org
Sun May 10 00:27:56 EDT 2009


In article 
<ec96e1390905090735p40bd6c21w5606c521c4c161e5 at mail.gmail.com>,
 Benjamin Kaplan <benjamin.kaplan at case.edu> wrote:
> On Sat, May 9, 2009 at 4:30 AM, Raoul Gough <bvdmyrby at jyxk16274849.net>wrote:
> > I just installed MacPython 3.0.1 (woot!) but the installer didn't seem
> > to do an absolutely complete job. According to the ReadMe.txt, "The
> > installer puts [...] command-line tools in /usr/local/bin [...]". This
> > didn't happen - even after the install reported Success, there were no
> > python files or symlinks under /usr/local/bin.
> >
> > Also, I'm guessing there should have been a symlink to the current
> > version under /Library/Frameworks/Python.framework/Versions, which
> > wasn't there either:
> >
> > $ cd /Library/Frameworks/Python.framework
> > $ ls -l Python
> > lrwxr-xr-x  1 root  admin  23 May  9 08:34 Python ->
> > Versions/Current/Python
> > $ ls -l Versions/Current
> > ls: Versions/Current: No such file or directory
> >
> > So I fixed this all up as follows:
> >
> > $ cd /Library/Frameworks/Python.framework/Versions
> > $ sudo ln -s 3.0 Current
> > $ cd /usr/local/bin
> > $ sudo ln -s $(find
> > /Library/Frameworks/Python.framework/Versions/Current/bin -type f) .
> >
> > So did something go wrong with the installer, or is it all supposed to
> > work somehow differently?
> 
> Because Python 3 breaks compatibility with Python 2, the installers don't
> install it as the default. The executable should be at
> /usr/local/bin/python3.0

By default, the 3.0.1 installer does not install any links in 
/usr/local/bin.  To do so, run or re-run the installer, click Customize,  
and then select the "UNIX command-line tools" package.  That creates 
/usr/local/python3.0 and /usr/local/python links, among others.

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list