Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,624 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!

Susan Rusie
Susan Rusie
10,671 Points

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.