Where does virtualenvwrapper's activate script live on Ubuntu?

29 Views Asked by At

I installed python2 and virtualenvwrapper on my ubuntu machine in order to run a very old set of scripts I've saved for an obscure task.

I run the following:

sudo apt-get install python2
cd ~/path/to/my/project
pip install virtualenvwrapper
source ~/.virtualenvs/ccs/bin/activate

Unfortunately, this gives me something like bash: ~/.virtualenvs/ccs/bin/activate: No such file or directory

I also try

source env/bin/activate

and again get a No such file or directory message.

Is there a different place where this script is installed on Ubuntu?

(I also tried apt-get install virtualenvwrapper with similar results.)

1

There are 1 best solutions below

2
mcursa-jwt On

according to this post, it can be found in /etc/bash_completion.d/virtualenvwrapper

you can add this to your ~/.bashrc by doing:

$ echo 'source /etc/bash_completion.d/virtualenvwrapper' >> ~/.bashrc

after restarting your terminal (important!)

$ bash

you can just call:

$ virtualenvwrapper