简体   繁体   English

安装PyObjc时出错:命令'/ usr / bin / clang'失败

[英]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.

相关问题 OSX - #include "portaudio.h" 生成 1 个错误。 错误:命令“/usr/bin/clang”失败,退出状态为 1 - OSX - #include "portaudio.h" 1 error generated. error: command '/usr/bin/clang' failed with exit status 1 Mac OS 中的 Pip 安装错误(错误:命令“/usr/bin/clang”失败,退出状态为 1) - Pip install error in Mac OS(error: command '/usr/bin/clang' failed with exit status 1) mac osx 10.9.2上的mysql-python:错误:命令'/ usr / bin / clang'失败,退出状态为1 - mysql-python on mac osx 10.9.2: error: command '/usr/bin/clang' failed with exit status 1 命令“ / usr / bin / clang ++ -bundle -undefined…”失败,退出状态为1 - Command “/usr/bin/clang++ -bundle -undefined…” failed with exit status 1 安装 `dulwich` 给出`error: command 'clang' failed with exit status 1` - Installing `dulwich` gives `error: command 'clang' failed with exit status 1` 安装PyObjC时出错 - Error installing PyObjC 安装PyObjC osX时出错 - error installing PyObjC osX 在 Mac OS Mojave 上安装 pycuda 时出错:error: command 'clang' failed with exit status 1 - Error installing pycuda on Mac OS Mojave: error: command 'clang' failed with exit status 1 / usr / bin / clang命令无法尝试在MacOS上pip安装TA-lib - /usr/bin/clang command failing trying to pip install TA-lib on MacOS 错误:命令“clang”失败,退出状态为 1:在 MacOS Big Sur M1 上安装 pandas - error: command 'clang' failed with exit status 1 : On installing pandas on MacOS Big Sur M1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM