Python virtualenv conflicting

Posted by Fernando on Stack Overflow See other posts from Stack Overflow or by Fernando
Published on 2013-10-31T15:05:58Z Indexed on 2013/10/31 15:53 UTC
Read the original article Hit count: 559

Filed under:
|
|

I'm trying to learn Django, so I started by reading about virtualenv. After installing it with pip (, I end up with:

...
sudo pip install virtualenv)
...

virtualenv paths

virtualenv at /usr/local/bin/virtualenv

and

virtualenv-2.7 at /usr/local/bin/virtualenv-2.7

If I use virtualenv-2.7 it seems to work fine, but if I use virtualenv, new modules get added to /usr/local/bin, instead of being inside the environment.

Example

cd ~
virtualenv v1
source v1/bin/activate
easy_install yolk
which yolk
# /usr/local/bin

If I use virtualenv-2-7, yolk gets installed correctly inside v1.

Did I mess up the installation? How can I fix this? (maybe uninstall virtualenv and start over).

Thanks for any help!

Edit:

I figured i have two easy_install bins

/usr/bin/easy_install-2.7 and /usr/bin/easy_install

easy_install --version
distribute 0.6.24dev-r0

easy_install-2.7 --version
distribute 0.6.24dev-r0

so this may be the cause of problems. More info:

python version: 2.7.3
virtualenv version: 1.10.1

© Stack Overflow or respective owner

Related posts about python

Related posts about ubuntu-12.04