1

I installed some packages using pip on my virtualenv and got everything running at once :

$ sudo apt-get install python-virtualenv
$ sudo pip install virtualenvwrapper
$ export WORKON_HOME=~/projects
$ source /usr/local/bin/virtualenvwrapper.s
$ mkvirtualenv pa

After this I installed some packages, they ran perfectly, I sat in the morning to work on these, None of the packages are there . Is there anything wrong that I am doing ?

Update :

This is the error I am getting if I try to create another env :

ImportError: No module named virtualenvwrapper.hook_loader
Deepankar Bajpeyi
  • 5,661
  • 11
  • 44
  • 64

1 Answers1

0

I think that you should write export at your .bashrc file, so it can get active when you run your terminal. In your ~/projects file there could be another file that holds only the envs in this case your export has to point to that file.

This is my .bashrc setting

export WORKON_HOME=$HOME/DEV/Envs # My directory to envs

source /usr/local/bin/virtualenvwrapper.sh

export PIP_VIRTUALENV_BASE=$WORKON_HOME # Tell pip to create its virtualenvs in $WORKON_HOME.

export PIP_RESPECT_VIRTUALENV=true # Tell pip to automatically use the currently active virtualenv.

export VIRTUALENV_DISTRIBUTE=true # use distribute

Also see if this might help https://stackoverflow.com/a/11512580/2007842

Community
  • 1
  • 1
Erika
  • 905
  • 1
  • 8
  • 15