python:virtual_environments
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
python:virtual_environments [2015/03/08 23:17] – adding common usage kauffman | python:virtual_environments [2015/03/09 09:01] – kauffman | ||
---|---|---|---|
Line 91: | Line 91: | ||
(exampleproject)user@computer: | (exampleproject)user@computer: | ||
user@computer: | user@computer: | ||
- | </ | ||
- | |||
- | ====== 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. | ||
- | < | ||
- | user@computer: | ||
- | </ | ||
- | |||
- | === Work on a virtual environment === | ||
- | ' | ||
- | ' | ||
- | < | ||
- | user@computer: | ||
- | </ | ||
- | |||
- | Deactivating is still the same: | ||
- | < | ||
- | user@computer: | ||
- | </ | ||
- | To delete: | ||
- | < | ||
- | user@computer: | ||
- | </ | ||
- | |||
- | === Other useful commands === | ||
- | < | ||
- | lsvirtualenv | ||
- | List all of the environments. | ||
- | cdvirtualenv | ||
- | Navigate into the directory of the currently activated virtual environment, | ||
- | so you can browse its site-packages, | ||
- | cdsitepackages | ||
- | Like the above, but directly into site-packages directory. | ||
- | lssitepackages | ||
- | Shows contents of site-packages directory. | ||
</ | </ |
/var/lib/dokuwiki/data/pages/python/virtual_environments.txt · Last modified: 2016/06/30 11:56 by kauffman