I could not get virtualenv to work despite various attempts. I installed virtualenv on MAC OS X using:
pip install virtualenv
and also added PATH to my .bash_profile . Every time I try to run the virtualenv command, it returns:
-bash: virtualenv: command not found
Each time I run pip install virtualenv , it returns:
Requirement already satisfied (use
I understand that on mac, virtualenv must be installed correctly in
/usr/local/bin
virtualenv indeed installed in /usr/local/bin , but whenever I try to run the virtualenv command, the command was not found. I also tried running the virtualenv command in the /usr/local/bin , and this gives me the same result:
-bash: virtualenv: command not found
This is the PATH that I added to my .bash_profile
export PATH=$PATH:/usr/local/bin export PATH=$PATH:/usr/local/bin/python export PATH=$PATH:/Library/Framework/Python.framework/Version/2.7/lib/site-packages
Any workarounds for this? Why is this so?
python virtualenv macos
Arial Jun 30 '15 at 8:17 2015-06-30 08:17
source share