Cannot execute pip command which requires compiling C on OSX 10.10 with home python

When I try pip install things that include compiling C ( Pillow in particular), I get an odd error:

 clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' error: command 'clang' failed with exit status 1 ---------------------------------------- Cleaning up... Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip-LnL0hW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow 

I sent my pip.log for this installation.

I think this issue is due to the combination of OSX 10.10 Yosemite and the Homebrew pet. Have you experienced this before? ideas on how to fix it?

+5
source share
1 answer

You need to install Xcode in order to be able to compile on OS X.

+1
source

Source: https://habr.com/ru/post/1204661/


All Articles