Reputation: 9190
I made a virtualenv env by the following command
mkvirtualenv /var/www/env --system-sites-packages
When I run the command
workon env
Following error displayed
ERROR: Environment 'env' does not exist. Create it with 'mkvirtualenv env'
Upvotes: 2
Views: 3184
Reputation: 20349
If you want to create virtualenv
in /var/www/env
to use workon
sudo chown <user> -R /var/www/
Then in nano ~/.bashrc
and add following lines.
export WORKON_HOME=/var/www/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
Then create virtualenv
mkvirtualenv env
Then to activate
workon env
I tested via sudo pip install virtualenvwrapper
Upvotes: 5
Reputation: 20456
As suggested by error, create it with 'mkvirtualenv env'
.
You've created /var/www/env
instead of env
only
Upvotes: 0