I am trying to find out why my virtualenv
and/or virtualenv
wrapper - installed using pip
using homebrew
- cannot be found. I think it's because it's not added to my PATH:
$ which virtualenv
$
and:
$ virtualenv someDir
$ -bash: virtualenv: command not found
I installed pip using homebrew
, and virtualenv
using pip
, without problems. I tried reinstalling virtualenv
, but that did not work either.
How do I know what path to add to PATH
? Just the path that virtualenv.py
seems to be installed into? That seems to be:
/usr/local/lib/python2.7/site-packages/virtualenv.py
I also found this guide, which suggests this:
$ ln -s ../Cellar/python/2.7/Frameworks/Python.framework/Versions/2.7/bin/virtualenv virtualenv
However, it does not help me run virtualenv
. I am on Mac OSX 10.7.5 (Lion).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…