| Start |
|---|
| Installation Install virtualenv via pip / (apt-get): OR Note: In case you are getting permission issues, use sudo. |
Usage Create virtual environment: To begin using the virtual environment, it needs to be activated: To exit your virtualenv just type “deactivate”: |
| Install a package in your Virtualenv If you look at the bin directory in your virtualenv, you’ll see easy_install which has been modified to put eggs and packages in the virtualenv’s site-packages directory. To install an app in your virtual environment: At this time, you don't have to use sudo since the files will all be installed in the local virtualenv site-packages directory. This was created as your own user account. |
| Other useful virtualenv 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, for example. cdsitepackages : Like the above, but directly into site-packages directory. lssitepackages : Shows contents of site-packages directory. |
Read Article
https://develop.horje.com/learn/1434/reference