我正在尝试在我的 django 应用程序中使用 PIL/Pillow,在 virtualenv 中运行,最终部署到 Heroku。
我已经完成的步骤:
- 启动 virtualenv (source venv/bin/activate)
- 点安装枕头
输出:
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
否则,有很多复制的文件:例如copying PIL/__init__.py -> build/lib.macosx-10.9-intel-2.7/PIL
但是,运行 python manage.py runserver 失败并在标题中显示错误消息。试过 pip install pil 还是不行。关于如何修复的任何提示?