Melissa Melissa - 6 months ago 14
Linux Question

Virtualenv installed on Mac but can't be found

My MacBook didn't have virtualenv anywhere (because I uninstalled and


I then installed virtualenv by

sudo pip install virtualenv

and I guess that installed virtualenv to /usr/local/bin because when I ran:

$ which virtualenv


But when I want to use virtualenv to create a new virtual environment, I got this:

$ virtualenv venv

-bash: /usr/local/share/python/virtualenv: No such file or directory

Why is it looking for virtualenv in /usr/local/share?


I see what's going on. virtualenv is installed:


But it's being referenced here:


You could add a link

    cd /usr/local/share/python/ && ln -s /usr/local/bin/virtualenv