如何在requirements.txt中允许未经验证的包

Kec*_*yal 7 python pip

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

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

如何修改requirements.txt以允许未经验证的包?在Heroku上的Fresh部署中的答案失败了"使用--allow-unverified PIL允许"状态,我们可以在requirements.txt中添加--allow-unverified ahocorasick.但那不适合我.

lev*_*evi 6

您还需要在requirements.txt的顶部添加此行

--allow-all-external
Run Code Online (Sandbox Code Playgroud)

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