From b526bb0a386360446eb7897218346cd75a791c46 Mon Sep 17 00:00:00 2001 From: syndg Date: Sat, 30 Aug 2014 18:19:11 +0300 Subject: [PATCH] Added more info in virtualenvs.rst. Added commands to specify python interpreter version. --- docs/dev/virtualenvs.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/dev/virtualenvs.rst b/docs/dev/virtualenvs.rst index 3f07cfe..ea579e5 100644 --- a/docs/dev/virtualenvs.rst +++ b/docs/dev/virtualenvs.rst @@ -32,6 +32,14 @@ Basic Usage This creates a copy of Python in whichever directory you ran the command in, placing it in a folder named :file:`venv`. +You can also use a Python interpreter of your choice. + +.. code-block:: console + + $ virtualenv -p /usr/bin/python2.7 venv + +This will use the Python interpreter in :file:`/usr/bin/python2.7` + 2. To begin using the virtual environment, it needs to be activated: .. code-block:: console