首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku:找不到与PIL==1.1.7匹配的发行版

Heroku:找不到与PIL==1.1.7匹配的发行版
EN

Stack Overflow用户
提问于 2016-02-04 18:47:00
回答 1查看 2.6K关注 0票数 3

我正在尝试推送我的Heroku应用程序,但在服务器上安装PIL时遇到错误,我已经尝试调整我的requirements.txt,如下所示

代码语言:javascript
复制
Django==1.4.5
Fabric==1.4.3
--allow-all-external
--allow-unverified PIL
PIL==1.1.7
#Pillow==2.3.0

还尝试在requirements.txt的开头添加参数,如下所示:

代码语言:javascript
复制
--allow-all-external
--allow-unverified PIL
Django==1.4.5
Fabric==1.4.3
PIL==1.1.7
#Pillow==2.3.0

这将失败,并返回错误:

代码语言:javascript
复制
remote:   InsecurePlatformWarning
remote:        Downloading Django-1.4.5.tar.gz (7.7MB)
remote:        Collecting Fabric==1.4.3 (from -r requirements.txt (line 2))
remote:        Downloading Fabric-1.4.3.tar.gz (221kB)
remote:        Collecting PIL==1.1.7 (from -r requirements.txt (line 5))
remote:   Could not find a version that satisfies the requirement PIL==1.1.7 (
om -r requirements.txt (line 5)) (from versions: )
remote: No matching distribution found for PIL==1.1.7 (from -r requirements.tx
(line 5))
remote:
remote:
remote:  !     Push rejected, failed to compile Python app
remote:
remote: Verifying deploy....
remote:
remote: !       Push rejected to my-test-app.
remote:
EN

回答 1

Stack Overflow用户

发布于 2016-02-04 21:18:23

使用Pillow而不是PIL。PIL没有得到维护,自2009年以来就没有发布过新版本。枕头是一个维护好的叉子。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35198987

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档