2014-10-14 15 views
5

Quando provo a pip install cose che coinvolgono C compilazione (Pillow, in particolare) ottengo un errore strano:Impossibile pip installare nulla che richiede la compilazione C su OSX 10.10 con Python homebrew

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 posted my pip.log for this installation.

Penso che questo problema sia dovuto a una combinazione di OSX 10.10 Yosemite e Homebrew python. Hai mai provato questo? idee su come risolverlo?

+0

Quale versione di Homebrew Python stai usando? – wkcamp

+0

L'ultimo python 2. –

+0

Hai provato l'aggiornamento a Python 3? Apparentemente, l'uso di Python 2.7 solleverà questo errore mentre non lo farà. Visto qui: https://github.com/pypa/pip/issues/1861 – wkcamp

risposta

1

È necessario installare XCode al fine di essere in grado di compilare su OS X.

Problemi correlati