Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virtualenv: command not found after installed with Pip on Mac [duplicate]

I am trying to install VirtualEnv on my Mac. I have installed Python and Pip with brew. After running pip install virtualenv When I try to use it I am getting:

bash: "virtualenv: command not found"

I am unsure where virtualenv has been installed. My PATH environment variable contains:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin

I am using: Mac Os 10.7.5

like image 455
poiuytrez Avatar asked Mar 22 '13 11:03

poiuytrez


1 Answers

I experienced a similar issue.

What you need to do is to add the pathname of where the package was installed to your .profile file. Look to see where the virtualenv package was installed into - in my case it was /Users/ianloke/Library/Python/2.7/bin. Then append this pathname to the PATH environment variable.

like image 126
ianlokejj Avatar answered Nov 15 '22 00:11

ianlokejj