Python 3 On Linux Amazon EC2 - Part 3
In this post we are going to look at using virtualenvwrapper
in conjunction with virtualenv
.
First, install it
and add the line
to .bash_profile
.
Restart the shell
One of the benefits of using virtualenvwrapper
is that it makes it easier to create virtual environments. From
we have
Next,
needs to be set in .bash_profile
, e.g. by adding
To test, the most common commands are
which returns a list of all virtual environments, as does
Other common commands are
(when a new virtual environment is created, it is automatically activated, and an environment cannot be deleted whilst activated).