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 trialmahesh gurbaxani
1,420 Pointshow do I install python on my windows computer
How do I instal python on my windows computer
4 Answers
Kenneth Love
Treehouse Guest TeacherWe have a whole course about that. Well, mostly.
William Li
Courses Plus Student 26,868 PointsHere https://www.python.org/downloads/
Download Python 3.4.2 and install it.
mahesh gurbaxani
1,420 PointsThanks. I have downloaded python 3.4.2 on my windows machine, but just cant figure out how to instal it and start using it.
Mario Blokland
19,750 PointsHi mahesh gurbaxani,
after you have installed python on your windows machine, open the command line and type in python
if you receive an error message or if you see the python 2.x version then try to type in python3
. If you still receive an error message, then you have to add the python 3 directory to your PATH
variable.
You do that by right clicking on Computer
and select properties
. In the left column select Advanced System Settings
. In the System properties
window click on the Advanced
tab and chose environment variables
. Search for the PATH
variable. There you should see something like c:\blabla\bin;c:\some_more;
.
Go to the end and add a semicolon if there isn't already one. Now add the path of your Python 3 directory, thus where you have installed it, which should look something like this c:\Python34
.
Restart your computer, open the command line tool and type python3
. You now should get the python3 prompt. Let me know if that helped.
mahesh gurbaxani
1,420 Pointsmahesh gurbaxani
1,420 PointsI have downloaded python on my computer. But I am still not clear on how to write a program and save with a file name from the command prompt, and then run it from the command prompt. Where do I write the script and save the file as a py file ?