gpt4 book ai didi

python - OS X Pillow 安装错误

转载 作者:太空宇宙 更新时间:2023-11-04 10:37:13 24 4
gpt4 key购买 nike

我按照以下说明操作:http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation

$ sudo pip install Pillow

返回错误:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bAG3wP-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/Pillow
Storing debug log for failure in /var/root/Library/Logs/pip.log

pip.log中:

Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Library/Python/2.7/site-packages/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Library/Python/2.7/site-packages/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Library/Python/2.7/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bAG3wP-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/Pillow

请帮帮我!

更新:

我之前安装过PIL。安装后,我尝试了一些黑魔法来使 PIL 与 libjpeg 一起工作。然后我尝试重新安装 PIL。已卸载,但安装失败。

最佳答案

运行 XCode 5.1 时似乎出现了问题。 installing pycrypto时遇到同样的问题.

试试这个:

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install Pillow

关于python - OS X Pillow 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22716854/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com