mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Added more info in virtualenvs.rst.
Added commands to specify python interpreter version.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user