Setuptools easy_install mac setup error
I am trying to setup easy_install on my mac. But I am getting the following error.
Installing Setuptools installation with the installation installed Checking support for the .pth file in / Library / Python / 2.7 / site-packages / error: Cannot create or delete files in the installation directory When trying to add or remove files to the installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-789.pth'
Installed installation directory (via --install-dir, --prefix, or the default distutils parameter):
/Library/Python/2.7/site-packages/
Please try again with sudo python ...
to be able to write to '/Library/Python/2.7/site-packages/
Try pyenv , it is somewhat similar to rbenv and is easier to remove if you don't need it. Moreover, you can play with different python versions without using system dependencies.
Try curl bootstrap.pypa.io/ez_setup.py -o - | sudo python
for access related problems.
You can add "sudo" before "python setup.py ..." in install.sh.
You can also use a flag --user
(instead of sudo
or pyenv
):
$ easy_install --user -U ...
See here