gpt4 book ai didi

python - 为什么 pip 会阻止安装可能不安全和无法验证的文件?

转载 作者:太空宇宙 更新时间:2023-11-04 05:53:12 25 4
gpt4 key购买 nike

我尝试使用 pip 安装 pybgpdump,但 pip 抛出以下错误。

pip install pybgpdump
Downloading/unpacking pybgpdump
You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
Error <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed> while getting https://jon.oberheide.org/pybgpdump/downloads/pybgpdump-0.2.tar.gz (from https://jon.oberheide.org/pybgpdump/)
Cleaning up..

为什么 pip 会尝试验证 pybgpdump 包?

安全文件和不安全文件有什么区别?

最佳答案

因为从pip 1.3版本开始,https是默认协议(protocol)。

CHANGES.txt :

**1.3 (2013-03-07)**

* SSL Cert Verification; Make https the default for PyPI access.
Thanks James Cleveland, Giovanni Bajo, Marcus Smith and many others (:pull:`791`, CVE-2013-1629).

因为pybgpdump托管在外部服务器 ( https://jon.oberheide.org/pybgpdump/ ) 上,您没有安装正确的证书。

另请注意,pypi 包索引仅包含 pybgpdump 的 0.1 版本,最新版本为 0.2

关于python - 为什么 pip 会阻止安装可能不安全和无法验证的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29132800/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com