Please send your reply to the mailing list (<a href="mailto:python-list@python.org">python-list@python.org</a>) rather than privately to me.<div><br><div class="gmail_quote">On 23 September 2012 20:57, John Dildy <span dir="ltr"><<a href="mailto:jdildy85@gmail.com" target="_blank">jdildy85@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When I give input at the start of terminal using the command pip install  virtualenv:<div><br></div><div><div>Downloading/unpacking virtualenv</div>
<div>  Running setup.py egg_info for package virtualenv</div><div>    </div>

<div>    warning: no previously-included files matching '*' found under directory 'docs/_templates'</div><div>    warning: no previously-included files matching '*' found under directory 'docs/_build'</div>


<div>Installing collected packages: virtualenv</div><div>  Running setup.py install for virtualenv</div><div>    error: /Library/Python/2.7/site-packages/virtualenv.py: Permission denied</div><div>    Complete output from command /usr/bin/python -c "import setuptools;__file__='/var/folders/4r/jxvj6v_j5571vbjxkx_jbdy80000gp/T/pip-build/virtualenv/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/4r/jxvj6v_j5571vbjxkx_jbdy80000gp/T/pip-S9mDRc-record/install-record.txt --single-version-externally-managed:</div>


<div>    running install</div><div><br></div><div>running build</div><div><br></div><div>running build_py</div><div><br></div><div>running install_lib</div><div><br></div><div>copying build/lib/virtualenv.py -> /Library/Python/2.7/site-packages</div>


<div><br></div><div>error: /Library/Python/2.7/site-packages/virtualenv.py: Permission denied</div></div></blockquote><div><br></div><div>Your user account does not have permission to install the package in the place where you want to install it.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div>----------------------------------------</div><div>Command /usr/bin/python -c "import setuptools;__file__='/var/folders/4r/jxvj6v_j5571vbjxkx_jbdy80000gp/T/pip-build/virtualenv/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/4r/jxvj6v_j5571vbjxkx_jbdy80000gp/T/pip-S9mDRc-record/install-record.txt --single-version-externally-managed failed with error code 1 in /var/folders/4r/jxvj6v_j5571vbjxkx_jbdy80000gp/T/pip-build/virtualenv</div>


<div>Storing complete log in /Users/jd3/Library/Logs/pip.log</div><div><br></div><div>When I give the input of easy_install virtualenv:</div><div><br></div><div><div>error: can't create or remove files in install directory</div>


<div><br></div><div>The following error occurred while trying to add or remove files in the</div><div>installation directory:</div><div><br></div><div>    [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-6258.write-test'</div>
</div></div></blockquote><div><br></div><div>This problem is exactly the same. It doesn't matter whether you use pip or easy_install, you need to be an administrator to install the package in that location.  See the rest of the message:</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div><br></div><div>The installation directory you specified (via --install-dir, --prefix, or</div>
<div>the distutils default setting) was:</div><div><br></div><div>    /Library/Python/2.7/site-packages/</div><div><br></div>

<div>Perhaps your account does not have write access to this directory?  If the</div><div>installation directory is a system-owned directory, you may need to sign in</div><div>as the administrator or "root" account.  If you do not have administrative</div>


<div>access to this machine, you may wish to choose a different installation</div><div>directory, preferably one that is listed in your PYTHONPATH environment</div><div>variable. </div></div></div></blockquote><div><br></div>
<div>There are two ways around this:</div><div><br></div><div>1) Run those commands as root. I don't use OSX but I believe the command is:</div><div>$ sudo pip install virtualenv</div><div><br></div><div>2)  Install into your user directory. I don't know if there's anything that needs to be done to make this work on OSX but I can do this with:</div>
<div>$ sudo pip install --user virtualenv</div><div> </div><div>Oscar</div></div></div>