【发布时间】:2012-02-17 09:56:53
【问题描述】:
我正在部署一些已经在本地运行的东西,当我部署时意识到我正在使用的模块没有安装在 Heroku 上,因此我收到如下错误:
...
from PIL import Image
ImportError: No module named PIL
我试过了:
heroku run pip install PIL
但我明白了:
ImportError: No module named setuptools.command
编辑
所以,我去了heroku setup 并模仿安装django 和postgres 的步骤。本质上,我激活了环境,然后运行了
pip install PIL
这似乎起到了作用,我得到了很多读数,然后以确认 PIL 已安装结束。但话又说回来,当我运行新文件时它说找不到 PIL。
【问题讨论】:
标签: django module heroku python-imaging-library pip