User Tools

Site Tools


python:virtual_environments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
python:virtual_environments [2015/03/08 23:17] – adding common usage kauffmanpython:virtual_environments [2015/03/09 09:01] kauffman
Line 91: Line 91:
 (exampleproject)user@computer:~/projects/exampleproject$ deactivate (exampleproject)user@computer:~/projects/exampleproject$ deactivate
 user@computer:~/projects/exampleproject$  user@computer:~/projects/exampleproject$ 
-</code> 
- 
-====== virtualenvwrapper ====== 
-virtualenvwrappers goal is to make virtualenv easier to use... sort of like when iTunes automatically organizes your iTunes library. 
- 
-==== Basic Usage ==== 
-=== Create a virtual environment === 
-This creates the exampleproject folder inside ~/Envs. 
-<code> 
-user@computer:~/$ mkvirtualenv venv 
-</code> 
- 
-=== Work on a virtual environment === 
-'virtualenvwrapper' provides tab-completion on environment names. It really helps when you have a lot of environments and have trouble remembering their names. 
-'workon' also deactivates whatever environment you are currently in, so you can quickly switch between environments. 
-<code> 
-user@computer:~/$ workon venv 
-</code> 
- 
-Deactivating is still the same: 
-<code> 
-user@computer:~/$ deactivate 
-</code> 
-To delete: 
-<code> 
-user@computer:~/$ rmvirtualenv venv 
-</code> 
- 
-=== Other useful commands === 
-<code> 
-lsvirtualenv 
-  List all of the environments. 
-cdvirtualenv 
-  Navigate into the directory of the currently activated virtual environment,  
-  so you can browse its site-packages, for example. 
-cdsitepackages 
-  Like the above, but directly into site-packages directory. 
-lssitepackages 
-  Shows contents of site-packages directory. 
 </code> </code>
/var/lib/dokuwiki/data/pages/python/virtual_environments.txt · Last modified: 2016/06/30 11:56 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki