【发布时间】:2014-10-25 01:14:02
【问题描述】:
我在安装 Kivy 时遇到了一个错误,它告诉我要安装 Cython,所以我照做了。 除了遇到错误外,我尝试使用 pip、easy_install 手动安装,但结果相同。我还尝试安装旧版本的 Cython,但没有成功。
错误信息: 命令 /usr/bin/python -c "import setuptools, tokenize;file='/private/tmp/pip_build_root/Cython/setup.py';exec(compile(getattr(tokenize, 'open' , open)(file).read().replace('\r\n', '\n'), file, 'exec'))" 安装 - -record /tmp/pip-nXMqSR-record/install-record.txt --single-version-externally-managed --编译失败,在 /private/tmp/pip_build_root/Cython 中出现错误代码 1 在 /Users/jorn/Library/Logs/pip.log 中存储失败的调试日志
当我手动安装时,我收到此错误: clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes - Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2。 7 -c Cython/Plex/Scanners.c -o build/temp.macosx-10.8-intel-2.7/Cython/Plex/Scanners.o 无法执行clang:没有这样的文件或目录 错误:命令“clang”失败,退出状态为 1
我已阅读并尝试了所有我能找到的解决方案,但没有一个可行..
我在 Mac osx 10.8.5 上运行
【问题讨论】:
-
是的,我已经看到并且已经尝试过该选项但没有运气
-
好的。我已重新标记您的问题以获得更好的帮助 - 这似乎不是 cython 或 Kivy 问题,而是 OSX/clang 问题。
-
@RyanP,谢谢!我刚刚通过您的最后评论找到了问题的解决方案:D,我将在下面发布
标签: macos clang pip cython kivy