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

install python in mac osx

how can make python scripts and run them on mac OS X? what editor and compare should i use

Hi Pulkit,

there are two python versions out there which are 2.x and 3.x. Typically MAC OS X has already an python interpreter pre-installed which should be the 2.x interpreter. If you open the terminal and type in "python" (without quotation marks) then you will see which exact version you have installed. (I don't know which version Kenneth uses in his videos because I didn't go through them yet).

But in case you have to use the 3.x version then just go to https://www.python.org/downloads/ and download the 3.x version. Then, you can choose in the terminal with which interpreter you want to interpret your python files just by typing "python MyModule.py" for python 2.x or "python3 MyModule.py" for python 3.x

You can use whatever editor you want to. Most people use the Sublime Text Editor.

Hope I could help.

--Mario

Thanks a lot Mario, its working perfectly fine :D

You are welcome :-).

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

We use exclusively Python 3 on Treehouse, specifically Python 3.4.

Kenneth Love your videos are really excellent, just watched a few, great teacher. Will you make some videos on Django (Beginner to Advanced or something) in the future too? With real world apps and explaining the magic behind this? (please no poll app :-) )

I have went through the official Django Tutorial but there is really much magic going on so now I know what to do but don't really know why and what the magic does behind the scenes.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

We will definitely be doing some Django stuff, but we have some more ground to cover before we get there. And, no, I won't be doing a polls app :) The official docs have that pretty well covered.

Kenneth Love that sounds awesome :-). I am looking forward to that!