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 Windows

Esteban Afonso
Esteban Afonso
3,478 Points

I have python 2.7 installed currently, if I install python 3.4 will it mess with my python 2.7 installation?

I have python 2.7 installed currently, if I install python 3.4 will it mess with my python 2.7 installation?

3 Answers

No, installing 3.4 will not mess with the 2.7 installation. As to what will happen, it depends on your OS; on my Mac, 2.7 is the default and is what is called. If I wanted 3.4, I typed 'python3'. However, if you install virtualenv, it makes it a WHOLE lot easier to manage different versions.

pip install virtualenv
rydavim
rydavim
18,814 Points

It's possible that how you accomplish this might vary by operating system, but the short answer is no - it won't effect the other version(s) you may have installed.

I have both Python 2.6.9 and Python 3.4.3 currently installed and working on my MacBook Pro.

Esteban Afonso
Esteban Afonso
3,478 Points

When I call "python" which version wil be called?

rydavim
rydavim
18,814 Points

Normally, "python" will call whatever your operating system's default version is. If you install python 3, you can use "python3" as the call. Alternatively, you can alias "python" to run the new version instead.