Melissa
Melissa

Reputation: 1276

Virtualenv installed on Mac but can't be found

My MacBook didn't have virtualenv anywhere (because I uninstalled and rm everything).

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

/usr/local/bin/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?

Upvotes: 2

Views: 2836

Answers (1)

willpnw
willpnw

Reputation: 775

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

    /usr/local/bin/virtualenv

But it's being referenced here:

/usr/local/share/python/virtualenv

You could add a link

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

Upvotes: 1

Related Questions