我正在创建一个Heroku应用程序,在其中我使用PIL和来自PIL import Image。
当我运行heroku local时,它返回ModuleNotFoundError: No module named 'Image'。我尝试使用Pillow而不是PIL,但它返回相同的错误。皮尔和枕头都在我的requirements.txt里。
我的完整github存储库的链接是:https://github.com/maivey/flower-image-classifier
请帮帮忙,因为我不明白为什么它不能识别PIL或Pillow
发布于 2020-07-06 12:23:27
也许你需要安装它们。如果使用anaconda:conda install PIL,如果使用pip:pip install PIL
谢谢
https://stackoverflow.com/questions/62748524
复制相似问题