Skip to content

Commit 9223381

Browse files
author
Adam Nelson
committed
Python3 stuff in virtualenv less prominent
1 parent 53a249a commit 9223381

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docs/dev/virtualenvs.rst

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ dilemma, and keeps your global site-packages directory clean and manageable.
1111
For example, you can work on a project which requires Django 1.9 while also
1212
maintaining a project which requires Django 1.8.
1313

14-
If you are using Python 3, make sure you run something like the following (or
15-
have it in your env variables in ``~/.bashrc``):
16-
17-
.. code-block:: console
18-
19-
$ export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
20-
2114
virtualenv
2215
----------
2316

@@ -50,13 +43,18 @@ in the current directory instead.
5043
This creates a copy of Python in whichever directory you ran the command in,
5144
placing it in a folder named :file:`venv`.
5245

53-
You can also use the Python interpreter of your choice.
46+
You can also use the Python interpreter of your choice (like
47+
:file:`/usr/local/bin/python3`).
5448

5549
.. code-block:: console
5650
5751
$ virtualenv -p /usr/local/bin/python3 venv
5852
59-
This will use the Python interpreter in :file:`/usr/local/bin/python3`
53+
or change the interpreter globally with an env variable in ``~/.bashrc``:
54+
55+
.. code-block:: console
56+
57+
$ export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
6058
6159
2. To begin using the virtual environment, it needs to be activated:
6260

0 commit comments

Comments
 (0)