EDIT2: OK, that's weird. (I can’t answer my question, so I’ll just put it as another edit of the question. I think this has something to do with the fact that I tried to make this installation in the Dropbox sync directory. Work on my desktop. Maybe Does anyone explain why this is so?
The original question:
I'm trying to make a Heroku Python setup tutorial (http://devcenter.heroku.com/articles/python) on my Mac OS X (Lion), but I'm catching up with the step of creating virtualenv.
So I did this on the command line (without using sudo caused by permission errors):
sudo pip install virtualenv
But then when I do "virtualenv venv --distribute" (I also tried with sudo), I get the following error:
New python executable in venv/bin/python Installing distribute..............................................................................................................................................................................................................................................................................................done. Installing pip... Error [Errno 2] No such file or directory while executing command /Users/AndyFang/Drop...env/bin/easy_install /Library/Python/2.7/...pport/pip-1.1.tar.gz ...Installing pip...done. Traceback (most recent call last): File "/usr/local/bin/virtualenv", line 8, in <module> load_entry_point('virtualenv==1.7.1.2', 'console_scripts', 'virtualenv')() File "/Library/Python/2.7/site-packages/virtualenv.py", line 928, in main never_download=options.never_download) File "/Library/Python/2.7/site-packages/virtualenv.py", line 1042, in create_environment install_pip(py_executable, search_dirs=search_dirs, never_download=never_download) File "/Library/Python/2.7/site-packages/virtualenv.py", line 640, in install_pip filter_stdout=_filter_setup) File "/Library/Python/2.7/site-packages/virtualenv.py", line 966, in call_subprocess cwd=cwd, env=env) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in __init__ errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Not sure what to do. It seemed that I did not have easy_install on my Mac, but I have it ... I'm not sure what the deal is?
EDIT: I also just tried installing virtualenv using easy_install, but I am getting the same error.