8000 Added more info in virtualenvs.rst. · mostlybob/python-guide@b526bb0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b526bb0

Browse files
committed
Added more info in virtualenvs.rst.
Added commands to specify python interpreter version.
1 parent 73a961a commit b526bb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/dev/virtualenvs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ Basic Usage
3232
This creates a copy of Python in whichever directory you ran the command in,
3333
placing it in a folder named :file:`venv`.
3434

35+
You can also use a Python interpreter of your choice.
36+
37+
.. code-block:: console
38+
39+
$ virtualenv -p /usr/bin/python2.7 venv
40+
41+
This will use the Python interpreter in :file:`/usr/bin/python2.7`
42+
3543
2. To begin using the virtual environment, it needs to be activated:
3644

3745
.. code-block:: console

0 commit comments

Comments
 (0)
0