小编Hiw*_*way的帖子

Heroku上的新部署失败了"使用 - 允许未经验证的PIL允许"

尝试将Django项目部署到Heroku上的新应用程序(代码在过去两年中运行在其他实例上) - 并且受到了以下攻击:

   Downloading/unpacking PIL==1.1.7 (from -r requirements.txt (line 7))

   Could not find any downloads that satisfy the requirement PIL==1.1.7 (from -r requirements.txt (line 7))

   Some insecure and unverifiable files were ignored (use --allow-unverified PIL to allow).
   Cleaning up...

   No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 7))
   Storing debug log for failure in /app/.pip/pip.log

   !     Push rejected, failed to compile Python app
Run Code Online (Sandbox Code Playgroud)

我知道最近的变化,pip并希望使用安全的软件包,但是根据pip的预期,所有软件包都可以正确打包,我们需要一些解决方法.特别是缺乏 - 允许所有未经验证的标志使得这是一个试验性的错误,黑板运动而不是无痛的部署.

有没有理智的方法来克服这个障碍?(不仅仅是PIL,但这是第一个失败的软件包,还有其他几个像pyPdf一样,如果我设法解决这个问题就会失败)

任何指针赞赏!

python django pip heroku

5
推荐指数
1
解决办法
4869
查看次数

标签 统计

django ×1

heroku ×1

pip ×1

python ×1