Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7a177c08
Commit
7a177c08
authored
Jun 26, 2019
by
Steve Dower
Committed by
GitHub
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Windows commands in tutorial (GH-14379)
parent
689830ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
Doc/tutorial/interpreter.rst
Doc/tutorial/interpreter.rst
+4
-6
Doc/using/windows.rst
Doc/using/windows.rst
+6
-6
No files found.
Doc/tutorial/interpreter.rst
View file @
7a177c08
...
...
@@ -23,12 +23,10 @@ is an installation option, other places are possible; check with your local
Python guru or system administrator. (E.g., :file:`/usr/local/python` is a
popular alternative location.)
On Windows machines, the Python installation is usually placed in
:file:`C:\\Python38`, though you can change this when you're running the
installer. To add this directory to your path, you can type the following
command into :ref:`a command prompt window <faq-run-program-under-windows>`::
set path=%path%;C:\python38
On Windows machines where you have installed from the :ref:`Microsoft Store
<windows-store>`, the :file:`python3.9` command will be available. If you have
the :ref:`py.exe launcher <launcher>` installed, you can use the :file:`py`
command. See :ref:`setting-envvars` for other ways to launch Python.
Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` on
Windows) at the primary prompt causes the interpreter to exit with a zero exit
...
...
Doc/using/windows.rst
View file @
7a177c08
...
...
@@ -214,13 +214,13 @@ of available options is shown below.
For example, to silently install a default, system-wide Python installation,
you could use the following command (from an elevated command prompt)::
python-3.
8
.0.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
python-3.
9
.0.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
To allow users to easily install a personal copy of Python without the test
suite, you could provide a shortcut with the following command. This will
display a simplified initial page and disallow customization::
python-3.
8
.0.exe InstallAllUsers=0 Include_launcher=0 Include_test=0
python-3.
9
.0.exe InstallAllUsers=0 Include_launcher=0 Include_test=0
SimpleInstall=1 SimpleInstallDescription="Just for me, no test suite."
(Note that omitting the launcher also omits file associations, and is only
...
...
@@ -257,13 +257,13 @@ where a large number of installations are going to be performed it is very
useful to have a locally cached copy.
Execute the following command from Command Prompt to download all possible
required files. Remember to substitute ``python-3.
8
.0.exe`` for the actual
required files. Remember to substitute ``python-3.
9
.0.exe`` for the actual
name of your installer, and to create layouts in their own directories to
avoid collisions between files with the same name.
::
python-3.
8
.0.exe /layout [optional target directory]
python-3.
9
.0.exe /layout [optional target directory]
You may also specify the ``/quiet`` option to hide the progress display.
...
...
@@ -530,7 +530,7 @@ To temporarily set environment variables, open Command Prompt and use the
.. code-block:: doscon
C:\>set PATH=C:\Program Files\Python 3.
8
;%PATH%
C:\>set PATH=C:\Program Files\Python 3.
9
;%PATH%
C:\>set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib
C:\>python
...
...
@@ -603,7 +603,7 @@ of your Python installation, delimited by a semicolon from other entries. An
example variable could look like this (assuming the first two entries already
existed)::
C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Python 3.
8
C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Python 3.
9
.. _launcher:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment