Skip to content

Commit a86f185

Browse files
committed
Fixes #14668. Mention Windows Path manipulation option in the installer.
1 parent 47ec25d commit a86f185

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

Doc/using/windows.rst

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ In order to run Python flawlessly, you might have to change certain environment
8282
settings in Windows.
8383

8484

85+
.. _setting-envvars:
86+
8587
Excursus: Setting environment variables
8688
---------------------------------------
8789

@@ -133,18 +135,28 @@ Consult :command:`set /?` for details on this behaviour.
133135
Finding the Python executable
134136
-----------------------------
135137

138+
.. versionchanged:: 3.3
139+
136140
Besides using the automatically created start menu entry for the Python
137-
interpreter, you might want to start Python in the DOS prompt. To make this
138-
work, you need to set your :envvar:`%PATH%` environment variable to include the
139-
directory of your Python distribution, delimited by a semicolon from other
140-
entries. An example variable could look like this (assuming the first two
141-
entries are Windows' default)::
141+
interpreter, you might want to start Python in the command prompt. As of
142+
Python 3.3, the installer has an option to set that up for you.
143+
144+
At the "Customize Python 3.3" screen, an option called
145+
"Add python.exe to search path" can be enabled to have the installer place
146+
your installation into the :envvar:`%PATH%`. This allows you to type
147+
:command:`python` to run the interpreter. Thus, you can also execute your
148+
scripts with command line options, see :ref:`using-on-cmdline` documentation.
149+
150+
If you don't enable this option at install time, you can always re-run the
151+
installer to choose it.
142152

143-
C:\WINDOWS\system32;C:\WINDOWS;C:\Python25
153+
The alternative is manually modifying the :envvar:`%PATH%` using the
154+
directions in :ref:`setting-envvars`. You need to set your :envvar:`%PATH%`
155+
environment variable to include the directory of your Python distribution,
156+
delimited by a semicolon from other entries. An example variable could look
157+
like this (assuming the first two entries are Windows' default)::
144158

145-
Typing :command:`python` on your command prompt will now fire up the Python
146-
interpreter. Thus, you can also execute your scripts with command line options,
147-
see :ref:`using-on-cmdline` documentation.
159+
C:\WINDOWS\system32;C:\WINDOWS;C:\Python33
148160

149161

150162
Finding modules

0 commit comments

Comments
 (0)