我正在尝试推送我的Heroku应用程序,但在服务器上安装PIL时遇到错误,我已经尝试调整我的requirements.txt,如下所示
Django==1.4.5
Fabric==1.4.3
--allow-all-external
--allow-unverified PIL
PIL==1.1.7
#Pillow==2.3.0还尝试在requirements.txt的开头添加参数,如下所示:
--allow-all-external
--allow-unverified PIL
Django==1.4.5
Fabric==1.4.3
PIL==1.1.7
#Pillow==2.3.0这将失败,并返回错误:
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:https://stackoverflow.com/questions/35198987
复制相似问题