OS X枕头安装错误 [英] OS X Pillow installation error

查看:100
本文介绍了OS X枕头安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了以下说明: 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.它已卸载,但无法安装.

I installed PIL before. After installation I tried some black magic to make PIL work with libjpeg. And then I tried to reinstall PIL. It was uninstalled, but failed to install.

推荐答案

运行XCode 5.1时似乎有些问题. 安装pycrypto 时遇到了同样的问题.

There seems to be something broken when running XCode 5.1. Had the same problem when installing pycrypto.

尝试一下:

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

这篇关于OS X枕头安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆