issues changing default version when updating Python on Mac

Posted by Emma on Super User See other posts from Super User or by Emma
Published on 2010-06-01T20:39:54Z Indexed on 2010/06/01 20:44 UTC
Read the original article Hit count: 432

Filed under:
|

I have a MacBook that came with Python 2.5 installed. I need use a newer version, so I downloaded 3.1 and installed it, then ran the "Update Profile Script" that came with it, which is supposed to change the default version of Python to the one I downloaded. It appeared to run fine and said process completed, but it didn't work. When I type "python" into the terminal it displays version 2.5, and I still can't install pygame, which requires at least Python 2.6.

When I do vi .profile I get this:

export PATH=.:/opt/local/bin:/opt/local/sbin:$PATH

export MANPATH=/opt/local/man:$MANPATH

Setting PATH for Python 3.1

The orginal version is saved in .profile.pysave

PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}" export PATH ~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
".profile" 6L, 251C

So it looks like the script did do something, but I don't know enough bash script to understand what. Does anyone know what the issue could be or how to fix it?

Thanks a lot!

© Super User or respective owner

Related posts about osx

Related posts about python