Virtualenv: Difference between revisions
From charlesreid1
(moved Virtualenv to Virtualenv/old) |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- | |||
Old version of page: [[Virtualenv/old]] | |||
--> | |||
=Basic Usage= | |||
Determine where you want your virtual python to live. I'll use the directory <code>~/vp</code> as an example. | |||
Create your virtual python: | |||
<pre> | |||
$ virtualenv vp | |||
</pre> | |||
Activate your virtual python: | |||
<pre> | |||
$ source vp/bin/activate | |||
</pre> | |||
Install stuff into your virtual python: | |||
<pre> | |||
$ vp/bin/pip install itertools | |||
</pre> | |||
To exit: | |||
<pre> | |||
$ deactivate | |||
</pre> | |||
=Links= | |||
Notes on how to use; http://docs.python-guide.org/en/latest/dev/virtualenvs/ | |||
=Flag= | |||
[[Category:Python]] | |||
[[Category:Virtualenv]] | |||
Latest revision as of 08:15, 11 April 2018
Basic Usage
Determine where you want your virtual python to live. I'll use the directory ~/vp as an example.
Create your virtual python:
$ virtualenv vp
Activate your virtual python:
$ source vp/bin/activate
Install stuff into your virtual python:
$ vp/bin/pip install itertools
To exit:
$ deactivate
Links
Notes on how to use; http://docs.python-guide.org/en/latest/dev/virtualenvs/