ipython/ipython — Issue #1231: pip on OSX tries to install files in /System directory.
Author: schwa
Created: 2012-01-05 06:12:02+00:00
State: open

Trying to install python "out of the box" on Mac OS X 10.7 using pip fails

It looks like it's trying to install files (docs?) into "/System/Library/Frameworks/Python.framework/Versions/2.7/share"

There's no reason anything should be installed in there by pip.

[schwa@ungoliant] ~$ pip install ipython
Downloading/unpacking ipython
Running setup.py egg_info for package ipython

no previously-included directories found matching 'IPython/deathrow'
no previously-included directories found matching 'IPython/frontend/html/notebook/static/mathjax'
warning: no previously-included files found matching 'docs/#*'
warning: no previously-included files found matching 'docs/man/*.1'
no previously-included directories found matching 'docs/attic'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.flc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '.dircopy.log' found anywhere in distribution
Installing collected packages: ipython
Running setup.py install for ipython
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/share': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/schwa/build/ipython/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/c9/pqvs14g940j9q5dxgh8njsnh0000gn/T/pip-eBq04h-record/install-record.txt:
running install

running build

running build_py

running install_lib

copying build/lib/IPython/.git_commit_info.ini -> /Library/Python/2.7/site-packages/IPython

running install_data

creating /System/Library/Frameworks/Python.framework/Versions/2.7/share

error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/share': Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/schwa/build/ipython/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/c9/pqvs14g940j9q5dxgh8njsnh0000gn/T/pip-eBq04h-record/install-record.txt failed with error code 1
Storing complete log in /Users/schwa/Library/Logs/pip.log
[schwa@ungoliant] ~$