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!

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 Python Basics (2015) Python for Beginners Introduction

Different compiler?

Right now, Treehouse provides a workspace. In the future though, I'll want to run Python on my own. I do I do that?

1 Answer

28,556 Points

You will have to install Python on your local machine. How to do that depends on the OS you are using.

On Windows you can go to the downloads section of python.org and just download and install Python like any other Windows program. Just make sure you download Python 3, not Python 2. On macOS it is a bit more complicated, I'd recommend following this tutorial. If you are using a Linux distribution then I'd recommend googling for an article on how to install Python 3 on the distribution you are using.

It's worth mentioning that macOS and most Linux distributions will come with Python 2 installed out of the box. But Python 3 is the version taught at Treehouse, and there are some significant differences between the versions. Which is why I recommend you go out of your way to install Python 3 regardless of what OS you use.

Once Python is installed you can open a terminal window and run Python in the same way you do in the workspace on Treehouse. Alternatively you can install an IDE like PyCharm and use that to write and run your Python code.