Posted on Jul 11
There is a package of virtualenvwrapper and can easily be installed with apt-get
.
$ sudo apt-get install virtualenvwrapper
To see what files are installed:
$ dpkg -L virtualenvwrapper
The initialization script virtualenvwrapper.sh
is placed in /usr/share/virtualenvwrapper/
, instead of /usr/local/bin/
.
export WORKON_HOME=$HOME/.virtualenvs
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
$ mkvirtualenv env1
$ workon env1 # Not needed if it is right after mkvirtualenv.
(env1)$ pip install networkx
(env1)$ lssitepackages # To see the package is installed.
(env1)$ mkvirtualenv env2 # Switching env to another one.
(env2)$ pip install pygments
(env2)$ lssitepackages
(env2)$ deactivate
$ rmvirtualenv env2
virtualenvwrapper.sh
script itself.2015 My gh-pages