Skip to content

Instantly share code, notes, and snippets.

@miah
Created July 1, 2013 22:04
Show Gist options
  • Select an option

  • Save miah/5905038 to your computer and use it in GitHub Desktop.

Select an option

Save miah/5905038 to your computer and use it in GitHub Desktop.
miahjohnson@Downloads]$: python distribute_setup.py
Extracting in /var/folders/jg/tpnfcl694_jgpdll9wfd4l7h0000gn/T/tmpjX3KcB
Now working in /var/folders/jg/tpnfcl694_jgpdll9wfd4l7h0000gn/T/tmpjX3KcB/distribute-0.6.46
Installing Distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Non-egg installation
Moving elements out of the way...
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r88846-py2.7.egg-info/EGG-INFO/PKG-INFO already patched.
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r88846-py2.7.egg-info already patched.
running install
Checking .pth file support in /lib/python2.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: '/lib/python2.7/site-packages/test-easy-install-81521.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/lib/python2.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://packages.python.org/distribute/easy_install.html
Please make the appropriate changes for your system and try again.
Something went wrong during the installation.
See the error message above.
@scalp42

scalp42 commented Jul 1, 2013

Copy link
Copy Markdown

YMMV but it should work.

  1. Install Python:
brew update ; brew install python
  1. Add this to your .zshrc/.bash_profile and source it:
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages

export PATH=/usr/local/share/python:$PATH
  1. Test:
pip install fabric
  1. Profit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment