【发布时间】:2023-03-18 02:52:01
【问题描述】:
我正在尝试在我的 django 应用程序中使用 PIL/Pillow,在 virtualenv 中运行,最终部署到 Heroku。
我已经完成的步骤:
- 已启动 virtualenv(源 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 还是不行。关于如何修复的任何提示?
【问题讨论】:
标签: django heroku python-imaging-library pillow