Mac OS X: Update Python for Shell
Posted
by
Nathan G.
on Super User
See other posts from Super User
or by Nathan G.
Published on 2011-01-15T21:43:41Z
Indexed on
2011/01/15
21:55 UTC
Read the original article
Hit count: 254
So, I see similar questions, but none of the answers work for me.
I updated Python to 3.1.3 from 2.6.1. Everything works, except: When I type python
into Terminal, I get:
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
So, how do I change the version of Python that runs in the Shell? I've tried the script that they provide. It adds their directory to my $PATH, but it still doesn't change the version that'd displayed from Terminal. Here's what I get when I echo $PATH
:
/Library/Frameworks/Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
It appears that the script provided has added their directory for every time I ran the script (I tried it a few times, naturally).
I'll gives links to caps of what is in the other relevant folders it mentions:
/Library/Frameworks/Python.framework/Versions/3.1/bin
/usr/local/bin
/usr/bin
Thakns in advance for any ideas!
© Super User or respective owner