【问题标题】:How to allow unverified packages in requirements.txt如何在 requirements.txt 中允许未经验证的包
【发布时间】:2015-05-24 02:30:21
【问题描述】:

在服务器上安装 ahocorasick 时出现以下错误:

一些不安全和无法验证的文件被忽略(使用 --allow-unverified ahocorasick 来允许)。

如何修改 requirements.txt 以允许未经验证的包? Fresh deploy on Heroku fails with "use --allow-unverified PIL to allow" 中的答案表明我们可以在 requirements.txt 中添加 --allow-unverified ahocorasick。但这对我不起作用。

【问题讨论】:

    标签: python pip


    【解决方案1】:

    你还需要在你的 requirements.txt 的顶部添加这一行

    --allow-all-external
    

    然后在所需的包中使用--allow-unverified

    【讨论】:

      猜你喜欢
      • 2012-02-10
      • 2022-10-05
      • 2013-05-31
      • 2017-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-19
      • 2020-11-27
      相关资源
      最近更新 更多