From charlesreid1

No edit summary
No edit summary
 
Line 11: Line 11:
<pre>
<pre>
$ virtualenv vp
$ virtualenv vp
$ cd vp
</pre>
</pre>


Line 17: Line 16:


<pre>
<pre>
$ source bin/activate
$ source vp/bin/activate
</pre>
</pre>


Line 23: Line 22:


<pre>
<pre>
$ bin/pip install itertools
$ vp/bin/pip install itertools
</pre>
 
To exit:
 
<pre>
$ deactivate
</pre>
</pre>



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/

Flag