File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ one mentioned below are preferred.
259259
260260 See :mod: `venv ` for an example of a package with a minimal ``__main__.py ``
261261 in the standard library. It doesn't contain a ``if __name__ == '__main__' ``
262- block. You can invoke it with ``python3 -m venv [directory] ``.
262+ block. You can invoke it with ``python -m venv [directory] ``.
263263
264264 See :mod: `runpy ` for more details on the :option: `-m ` flag to the
265265 interpreter executable.
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ something into it:
7373
7474.. code-block :: shell-session
7575
76- $ python3 -m venv example
76+ $ python -m venv example
7777 $ source example/bin/activate
7878 (example) $ python -m pip install wheel
7979
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ of the debugger is::
5858:file: `pdb.py ` can also be invoked as a script to debug other scripts. For
5959example::
6060
61- python3 -m pdb myscript.py
61+ python -m pdb myscript.py
6262
6363When invoked as a script, pdb will automatically enter post-mortem debugging if
6464the program being debugged exits abnormally. After post-mortem debugging (or
@@ -72,7 +72,7 @@ useful than quitting the debugger upon program's exit.
7272
7373.. versionadded :: 3.7
7474 :file: `pdb.py ` now accepts a ``-m `` option that execute modules similar to the way
75- ``python3 -m `` does. As with a script, the debugger will pause execution just
75+ ``python -m `` does. As with a script, the debugger will pause execution just
7676 before the first line of the module.
7777
7878
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ whichever version you want.
4444To create a virtual environment, decide upon a directory where you want to
4545place it, and run the :mod: `venv ` module as a script with the directory path::
4646
47- python3 -m venv tutorial-env
47+ python -m venv tutorial-env
4848
4949This will create the ``tutorial-env `` directory if it doesn't exist,
5050and also create directories inside it containing a copy of the Python
Original file line number Diff line number Diff line change 11Creation of :ref:`virtual environments <venv-def>` is done by executing the
22command ``venv``::
33
4- python3 -m venv /path/to/new /virtual /environment
4+ python -m venv /path/to/new /virtual /environment
55
66Running this command creates the target directory (creating any parent
77directories that don' t exist already) and places a ``pyvenv.cfg`` file in it
You can’t perform that action at this time.
0 commit comments