@@ -378,7 +378,9 @@ may be changed from ``.``, and the package will be installed into a
378
378
subdirectory. By default, the subdirectory is named the same as the package,
379
379
and without the ``-ExcludeVersion `` option this name will include the specific
380
380
version installed. Inside the subdirectory is a ``tools `` directory that
381
- contains the Python installation::
381
+ contains the Python installation:
382
+
383
+ .. code-block :: doscon
382
384
383
385
# Without -ExcludeVersion
384
386
> .\python.3.5.2\tools\python.exe -V
@@ -672,9 +674,7 @@ From the command-line
672
674
System-wide installations of Python 3.3 and later will put the launcher on your
673
675
:envvar: `PATH `. The launcher is compatible with all available versions of
674
676
Python, so it does not matter which version is installed. To check that the
675
- launcher is available, execute the following command in Command Prompt:
676
-
677
- ::
677
+ launcher is available, execute the following command in Command Prompt::
678
678
679
679
py
680
680
@@ -684,36 +684,30 @@ arguments specified will be sent directly to Python.
684
684
685
685
If you have multiple versions of Python installed (e.g., 3.7 and |version |) you
686
686
will have noticed that Python |version | was started - to launch Python 3.7, try
687
- the command:
688
-
689
- ::
687
+ the command::
690
688
691
689
py -3.7
692
690
693
- If you want the latest version of Python 3 you have installed, try the
694
- command:
691
+ If you want the latest version of Python 2 you have installed, try the
692
+ command::
695
693
696
- ::
697
-
698
- py -3
694
+ py -2
699
695
700
696
You should find the latest version of Python 3.x starts.
701
697
702
- If you see the following error, you do not have the launcher installed:
703
-
704
- ::
698
+ If you see the following error, you do not have the launcher installed::
705
699
706
700
'py' is not recognized as an internal or external command,
707
701
operable program or batch file.
708
702
709
703
Per-user installations of Python do not add the launcher to :envvar: `PATH `
710
704
unless the option was selected on installation.
711
705
712
- ::
706
+ The command ::
713
707
714
708
py --list
715
709
716
- You should see the currently installed versions of Python.
710
+ displays the currently installed version(s) of Python.
717
711
718
712
Virtual environments
719
713
^^^^^^^^^^^^^^^^^^^^
@@ -739,9 +733,7 @@ following contents
739
733
import sys
740
734
sys.stdout.write(" hello from Python %s \n " % (sys.version,))
741
735
742
- From the directory in which hello.py lives, execute the command:
743
-
744
- ::
736
+ From the directory in which hello.py lives, execute the command::
745
737
746
738
py hello.py
747
739
0 commit comments