tags:

views:

76

answers:

1

I would like to change PATH from Python 2.6.1 to 3.1.2. I have both versions installed on my computer but when I type python --version in the terminal I get Python 2.6.1 so thats the current version its "pointing" to. Now if I type Python3.1 it changes the current version to the one I want to use, though the PATH is still 2.6.1. Downloaded with the Python 3.1 package comes a Update Shell Profile.command, so when I run it and then run nano ~/.bash_profile it says there: Setting PATH for Python 3.1 the orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}" export PATH.

Does this mean that I have changed the PATH or does it just give me instructions how to?!

Regards

+1  A: 
PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}" 
export PATH

This will append the Python directory to the path.

If this is part of ~/.bash_profile, this will append the Python path on each startup.


This is not really a programming question, it should be moved to SuperUser.

leoluk
@lelouk: Thanks for the info. That cleared things more for me.
Tim
@lelouk, BTW how do you add a question to SuperUser instead? I was aware that their was another section.
Tim
someone has to vote to migrate this, but this requires 3000 rep, and you can't do it yourself because it requires 250 rep, so there's nothing me or you could actually do
leoluk
ok. then I know.
Tim