Python on Windows: Difference between revisions

imported>Jesstess
 
<ol>
<li>Click http://python.org/ftp/python/2.7.1/python-2.7.1.msi and choose "run" if you have the option to. Otherwise, save it to your Desktop, then minimize windows to see your desktop, and double click on it to start the installer. IfFollow youthe areinstaller running 64-bit Windows or this link doesn't work for any other reason, click Goinstructions to http://python.org/download/ and download the latest version of Python 2.7 (2.7.1 at the time of writing). Unless you know otherwise, get the "Windows Installer" version, and not the "Windows X86-64 Installer" versioncompletion.</li>
<li><b>Open a command prompt (we will be doing this multiple times, so make a note of how to do this!)</b>:
<li>Use the default settings in the installation prompts and click through until the end of the installer.</li>
<li><b>Open* a command prompt (we will be doing this multiple times, so make a note of how to do this!)</b>:<br /><br />If you are usingOn Windows Vista or Windows 7, you should: click on the Start menu (the Windows logo in the lower left of the screen), type "<code>cmd"</code> into the Search field directly above the Start menu button, and click on "cmd" in the search results above the Search field. If you are using Windows XP, click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type "cmd" without quotes, and hit enter.<br />You now have a command prompt open in Windows.</li>
* On Windows XP: click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type <code>cmd</code> into the text box, and hit enter.
<li>At the c:\ prompt that appears, test your Python install by typing
<br />
You now have a command prompt. This command prompt is another way of navigating your computer and running programs -- just textually instead of graphically. We are going to be running Python and Python scripts from this command prompt.
</li>
<li>At thethis c<code>C:\</code> prompt that appears, test your Python install by typing
 
<pre>
>>>
</pre>
 
You just started Python! The <code>>>></code> indicates that you are at a new type of prompt -- a Python prompt. The command prompt let's you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.
 
</li>
<li>To exit the Python prompt, type
 
<pre>
exit()
</pre>
 
and press Enter. This will take you back to the Windows command prompt (the c<code>C:\<code> you saw earlier).</li>
</ol>
 
Anonymous user