Boston Python Workshop 8/Friday/Windows set up Python: Difference between revisions

no edit summary
imported>Jesstess
(Created page with "== Download and install Python == If you believe you already have Python installed, please let a staff member know before completing these steps. <ol> <li>Click http://pytho...")
 
imported>Jesstess
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
__NOTOC__
== Download and install Python ==
 
[[File:Python-logo.png|300px]]
If you believe you already have Python installed, please let a staff member know before completing these steps.
 
We are going to download, install, and configure Python version 2.7.5.
 
== Download and install Python ==
 
<ol>
<li>Click http://python.org/ftp/python/2.7.15/python-2.7.15.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. Follow the installer instructions to completion.</li>
<li><b>Open a command promptterminal (we will be doing this multiple times, so make a note of how to do this!)</b>:
* On Windows Vista or Windows 7: 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.
* 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.
<br />
You now have what's calledstarted a command<b>terminal prompt</b>. This commandterminal 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 commandterminal prompt.
</li>
<li>At this <code>C:\</code> prompt that appears, test your Python installinstallation by typing:
 
<pre>
Line 17 ⟶ 21:
</pre>
 
and hittingpressing enterEnter. You should see something like
<pre>
Python 2.7.15 (r271:86832, ...) on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
</pre>
 
You just started Python! The <code>>>></code> indicates that you are at a new type of prompt -- a Python prompt. The commandterminal prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.
 
</li>
Line 66 ⟶ 70:
#* A window with the "Variable name" and the "Variable value" should appear. The "Variable value" will already have some text in it; click in the box to unhighlight it (we don't want to accidentally delete that text).
# In the "Variable value" box, scroll to the end. Add the following text, and hit OK. Make sure to include the semicolon at the start! <pre>;c:\python27\;c:\python27\scripts</pre>
# HitPress "OK" to close out the system properties window.
# Test your change:
## Open up a <b>new</b> command prompt: you do this the same way you did above when installing python. This needs to be a new command prompt because the changes you just made didn't take affect in prompts that were already open.
Line 76 ⟶ 80:
 
You have Python installed and configured.
 
[[File:Champagne.png|100px]][[File:Party.png|125px]]
 
[[Boston Python Workshop 8/Friday|&laquo; Back to the Friday setup page]]
Anonymous user