Heroku:找不到PIL == 1.1.7的匹配分布

时间:2016-02-04 10:47:00

标签: django heroku pip

我正在尝试推送我的Heroku应用程序并在服务器上安装PIL时出错,我尝试通过调整我的requirements.txt,如下所示

#include<stdio.h>
#include<stdlib.h>

int main()
{
        FILE *fp1, *fp2;
        char ch,*str,*r;
        int i =0;
        int n = 0;
        int l;

        fp1 = fopen("co.data", "r");
        fp2 = fopen("Output.txt", "w+");
        printf("please enter how many lines do not need to be copied\n");
        scanf ("%d", &l);
        while (1)
        {
                if(r=fgets(str, 500, fp1))
                {                      /*  a loop to read/copy    the file*/
                        i++;
                }
                if (r == NULL)
                        break;
                else if (i > l)
                        fputs(str, fp2);

        }
        printf("File copied Successfully!\n");
        printf("number of lines read is %d\n",i-1);
        printf("number of lines copied is %d\n",i-1-l);
        fclose(fp1);
        fclose(fp2);
}

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

Django==1.4.5
Fabric==1.4.3
--allow-all-external
--allow-unverified PIL
PIL==1.1.7
#Pillow==2.3.0

这是失败的错误:

--allow-all-external
--allow-unverified PIL
Django==1.4.5
Fabric==1.4.3
PIL==1.1.7
#Pillow==2.3.0

1 个答案:

答案 0 :(得分:1)

使用Pillow代替PIL。 PIL没有维护,自2009年以来没有新的版本。枕头是一个维护的叉子。