Skip to content

Commit d005090

Browse files
committed
Closes #23357: Updated documentation on creating venvs.
2 parents 3468a06 + 3595276 commit d005090

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Doc/using/venv-create.inc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ subdirectory (on Windows, this is ``Lib\site-packages``).
2121
On Windows, you may have to invoke the ``pyvenv`` script as follows, if you
2222
don't have the relevant PATH and PATHEXT settings::
2323

24-
c:\Temp>c:\Python33\python c:\Python33\Tools\Scripts\pyvenv.py myenv
24+
c:\Temp>c:\Python35\python c:\Python35\Tools\Scripts\pyvenv.py myenv
2525

2626
or equivalently::
2727

28-
c:\Temp>c:\Python33\python -m venv myenv
28+
c:\Temp>c:\Python35\python -m venv myenv
2929

3030
The command, if run with ``-h``, will show the available options::
3131

32-
usage: pyvenv [-h] [--system-site-packages] [--symlinks] [--clear]
33-
[--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
32+
usage: venv [-h] [--system-site-packages] [--symlinks] [--clear]
33+
[--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
3434

3535
Creates virtual Python environments in one or more target directories.
3636

@@ -53,6 +53,9 @@ The command, if run with ``-h``, will show the available options::
5353
--without-pip Skips installing or upgrading pip in the virtual
5454
environment (pip is bootstrapped by default)
5555

56+
Depending on how the ``venv`` functionality has been invoked, the usage message
57+
may vary slightly, e.g. referencing ``pyvenv`` rather than ``venv``.
58+
5659
.. versionchanged:: 3.4
5760
Installs pip by default, added the ``--without-pip`` and ``--copies``
5861
options

0 commit comments

Comments
 (0)