Installing Pip onto a mac os x system

Benjamin Kaplan benjamin.kaplan at case.edu
Wed Sep 19 21:46:31 EDT 2012


On Sep 19, 2012 6:37 PM, "John Mordecai Dildy" <jdildy85 at gmail.com> wrote:
>
> Does anyone know how to install Pip onto a mac os x ver 10.7.4?
>
> Ive tried easy_instal pip but it brings up this message (but it doesn't
help with my problem):
>
> error: can't create or remove files in install directory
>
> The following error occurred while trying to add or remove files in the
> installation directory:
>
>     [Errno 13] Permission denied:
'/Library/Python/2.7/site-packages/test-easy-install-1820.write-test'
>
> The installation directory you specified (via --install-dir, --prefix, or
> the distutils default setting) was:
>
>     /Library/Python/2.7/site-packages/
>
> Perhaps your account does not have write access to this directory?  If the
> installation directory is a system-owned directory, you may need to sign
in
> as the administrator or "root" account.  If you do not have administrative
> access to this machine, you may wish to choose a different installation
> directory, preferably one that is listed in your PYTHONPATH environment
> variable.
>
> For information on other options, you may wish to consult the
> documentation at:
>
>   http://peak.telecommunity.com/EasyInstall.html
>
> Please make the appropriate changes for your system and try again.
>
> Thing is I am the Administrator of the computer and can use all of the
folders on the mac computer.
>

No you can't. You can ask permission to use skill the folders (and then
grant yourself that permission), but the user that you're currently running
as does not have full access to the computer.

You know how every time you install a program, a prompt comes up asking for
your password? That's you giving the process permission to run as "root",
the only account with full access to everything.

On the command line, you run things as root by using the "sudo" command
(being an administrator means your account is able to run that)

sudo easy_install pip

should work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120919/bfb58900/attachment.html>


More information about the Python-list mailing list