不能在OSX 10.10上用自制python安装任何需要C编译的东西

2024-09-30 08:18:50 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试pip install涉及到C编译的事情时(具体来说,Pillow)我得到了一个奇怪的错误:

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 ^{} for this installation.

我认为这个问题是由于osx10.10yosemite和自制python的结合造成的。你以前有过这种经历吗?关于如何修复它的想法?在


Tags: installpipvarwitherrorprivaterecordfolders

热门问题