[英]Error installing PyObjc: command '/usr/bin/clang' failed
I've been working on a python script, first using the Psychopy compiler, which already included all I needed, but now I need to make it the more independent as possible. 我一直在研究python脚本,首先使用Psychopy编译器,它已经包含了我所需要的所有内容,但现在我需要让它更加独立。 I have the script working on a Windows computer, but I also want it to work in OSX. 我有脚本在Windows计算机上工作,但我也希望它在OSX中工作。
The script uses pyglet and I followed this post in order to install it. 该脚本使用pyglet,我按照这篇文章来安装它。 However, when I reach the latest step, which is installing PyObjc, I have the following error: 但是,当我到达安装PyObjc的最新步骤时,我有以下错误:
40 warnings and 1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip_build_JL/pyobjc-core/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip-HfEjaW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/fk/1plt8wj53_d183pv59scmg4m0000gn/T/pip_build_JL/pyobjc-core
Storing debug log for failure in /Users/JL/.pip/pip.log
Why does this error appears? 为什么会出现此错误? What can I do to solve it? 我该怎么做才能解决它?
Terminal post: 终点站:
xcode-select --install
may be can help you. 也许可以帮到你。
Try installing pyobjc separately first. 首先尝试单独安装pyobjc。
On OSX 10.7 or 10.8, try: 在OSX 10.7或10.8上,尝试:
env CC=clang pip -U pyobjc-core
env CC=clang pip -U pyobjc
On OSX 10.9, try: 在OSX 10.9上,尝试:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pyobjc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.