Search code examples
pythonmacossetuptoolseasy-install

setuptools easy_install mac error


I'm trying to setup easy_install on my mac. But I'm getting the following error.

Installing Setuptools running install Checking .pth file support in /Library/Python/2.7/site-packages/ 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-789.pth'

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

/Library/Python/2.7/site-packages/


Solution

  • Try again using sudo python ... to be able to write to '/Library/Python/2.7/site-packages/