If you don’t have Python on your computer and you are interested, then read this two-step guide.
- First, you will need the gedit text editor. It’s great Python support will make things easier. On the right side of the gedit home page there is a Downloads section. Choose either the Windows or Mac version. Once installed, we have to change a few default. Open Edit -> Preferences. In the View tab, check “Display line numbers.” In the Editor tab, change “Tab Width” to 4, check “Insert spaces instead of tabs,” and turn on automatic indentation.
- Download Python, either version 2.7.x+ or 3.x+ will work. But, I recommend getting 2.x because there are more libraries and software compatible with it currently.(Attention Windows 7 Users: You may have to manually add Python to the path list. It’s easy. Right-click Computer -> Properties -> Advanced System Settings. Click Environment Variables. The bottom half has System Variables. Highlight “Path” then click Edit. Check to see if you have <pre>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;</pre>
already. If not, then add it. Then add <pre>;c:\python27</pre> at the end of the list)</li> </ol> Done. You should now have Python working on your computer. Now a quick program to check that it works. <p style="padding-left: 30px;"> 1. Open gedit. Type in: </p> <pre style="padding-left: 30px;">print "The program works!" raw_input()</pre> <p style="padding-left: 30px;"> 2. Save file as <strong>test.py</strong> </p> <p style="padding-left: 30px;"> 3. Double-click on the file. If you see “The program works!” then congratulations. If you don’t, and are having Windows problems, please check out these <a href="http://docs.python.org/faq/windows.html" target="_blank">FAQs</a>. </p> Please comment. How do you feel about this guide?