Red-Tune-84
Red-Tune-84

Reputation: 387

Virtualenv "workon" command online working in one terminal tab.

I'm working on a django project.

I hav virtualenv and virtualenvwrapper setup. When I invoke

workon myprojectname

I cannot invoke it again in another terminal tab or window. Any ideas why? Does it have anything to do with postactivate hooks? I wouldn't think so.

Thanks for the help.

Upvotes: 4

Views: 3419

Answers (1)

Kyle Getrost
Kyle Getrost

Reputation: 737

Have you added the virtualenvwrapper commands to your startup shell file?

For Example, if you're using Terminal on Mac, add the following lines to your ~/.bash_profile:

export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh

http://virtualenvwrapper.readthedocs.org/en/latest/install.html#shell-startup-file

Upvotes: 7

Related Questions