Python on Windows: Difference between revisions

no edit summary
(added vista instructions for cmd)
imported>Paulproteus
No edit summary
and press Enter. This will take you back to the Windows command prompt.</li>
</ol>
 
== Required step: Put Python on the PATH ==
 
'''This will take about 3 extra minutes''' and is essential for you to be able to use Python easily within Windows.
 
You might have noticed that you typed a directory name above when launching Python. In this step, you will reconfigure your computer to put Python on the system PATH so that you can run it without typing the ''Python27'' directory name.
 
=== For Windows 7 ===
 
(Note: These steps are based on a [
http://www.youtube.com/watch?v=g9JvseacxPY video that you can watch].)
 
# Click the Windows logo in the bottom left...
#* Click "Computer", and wait for a window to appear with the drives in your computer
# ''Right-click'' on the empty space in the window, and choose ''Properties'
#* A window labeled "View basic information about your computer" should appear
# In the new window, click "Advanced system settings"
#* A window should appear whose title is "System Properties"
#* Make sure you are in the tab labeled "Advanced"
# Click the button labeled "Environment Variables". A window labeled "Environment Variables" should appear.
# In this window, the screen is split between "User variables" and "System variables". Within "System variables", scroll down and find the one labeled '''Path'''. Click the "Edit..." button.
#* A window with the "Variable name" and the "Variable value" should appear.
# In the "Variable value", scroll to the end. Add this text, and hit OK: <pre>;c:/python27/;c:/python27/scripts</pre>
# Hit "OK" to close out the system properties changes.
# Test it:
#* Open up a command prompt
#* Type just "python" into the command prompt
#* Notice that you now get a Python interpreter.
Anonymous user