Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 989
Red-Tune-84 Avatar asked Mar 19 '23 12:03

Red-Tune-84


1 Answers

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

like image 179
Kyle Getrost Avatar answered Apr 02 '23 14:04

Kyle Getrost