Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Setting Up a Local Python Environment Installing Python and Python Libraries Locally Installing Python 3 on Mac OS X

Peter Byriel
Peter Byriel
9,643 Points

Why does "python" in terminal start python 2?

I installed the latest version without any trouble at all. But noticed that in Terminal I need to type python3 to get the newest version to run, otherwise the terminal starts python 2.7.something.

Was wondering if there is a standard way to change this?

3 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Because Mac comes with a Python already installed, just not the one we want to be using. The Mac installer uses python3 because overriding the system Python can produce some horrible effects.

Peter Byriel
Peter Byriel
9,643 Points

ok, so what you're saying is "DO NOT TAMPER WITH IT" :-) Thanks :-)

seems like there's a way to override to the newest version of python... you sure it's not recommended to change it?