如何在Requirements.txt中允许未验证的软件包 [英] How to allow unverified packages in requirements.txt

查看:96
本文介绍了如何在Requirements.txt中允许未验证的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I get the following error on installing ahocorasick on a server:

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

Some insecure and unverifiable files were ignored (use --allow-unverified ahocorasick to allow).

如何修改requirements.txt以允许未验证的软件包? 在Heroku上进行的新部署失败带有使用--allow-unverified PIL允许" 的状态,我们可以在Requirements.txt中添加--allow-unverified的ahocorasick.但这对我不起作用.

How do I modify the requirements.txt to allow unverified packages? The answer in Fresh deploy on Heroku fails with "use --allow-unverified PIL to allow" states that we can add --allow-unverified ahocorasick in the requirements.txt. But that is not working for me.

推荐答案

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

You need too add this line at the top of your requirements.txt

--allow-all-external

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

And then use --allow-unverified in desired packages.

这篇关于如何在Requirements.txt中允许未验证的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆