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

JavaScript npm Basics (retiring) Installing Packages with npm Installing Local Packages

Vincent Tatan
Vincent Tatan
22,960 Points

My python version is 3.5.0 and I do not have Python 2. How do I set up and install python 2.x on my local environment?

I would like to set up python 2 in my local environment. How do I set it up so that I could call it with "python2" as set in Treehouse WorkSpace? Thank you

4 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Vincent,

If you have a Mac, Python 2 is already installed on it and can be accessed by typing Python in the Terminal (if you want Python 3, you type Python3 in the terminal).

But, both versions are openly available for download at Python.org if you do need to download Python 2.x

:)

Vincent Tatan
Vincent Tatan
22,960 Points

All right. I see what you mean. Thanks!

Vincent Tatan
Vincent Tatan
22,960 Points

All right. I see what you mean. Thanks!

This is a really good video I found to help install Python 2.7.12. Note, that you have to do the last three steps in the video each time you want to actively use Python. Here it is: https://www.youtube.com/watch?v=QYUBz4mrnFU. I hope this helps.