Changing Python versions on the command line

Python 2.5 appeared on my Mac. I downloaded Python 3.2 and enabled it in my IDE. When I open a terminal on Mac and type Python, it tells me that I am working with 2.5.

1) What should I enter on the command line to change from 2.5 to 3.2?

2) As soon as I get to 3.2 (using your answer), how do I get back to 2.5 if I want?

Thanks for your help.

+6
python macos
source share
1 answer

You can simply type python3.2 instead of python to use python 3.2.

+5
source share

All Articles