gpt4 book ai didi

python - 在进行任何 pip 安装时,如何避免这个奇怪的 "Could not fetch URL"错误

转载 作者:太空宇宙 更新时间:2023-11-03 13:34:20 24 4
gpt4 key购买 nike

使用 python 2.7。几个月来工作正常,但突然间,当我尝试在 virtualenv 之外或之内进行 pip 安装时,我开始收到这个奇怪的错误。如果我这样做:

pip install pandas

有人告诉我:

Could not fetch URL https://pypi.python.org/simple/pandas/: There was a problem confirming the ssl certificate: EOF occurred in violation of protocol (_ssl.c:590) - skipping
Could not find a version that satisfies the requirement pandas (from versions: )
No matching distribution found for pandas

几乎所有 pip 库都会出现这种情况,这令人气愤。我尝试更新我的 pip,它说它是最新的。我在某个地方读到我应该尝试更新我用过的 virtualenv:

pip install --upgrade virtualenv

但是报同样的错误。太气人了哈哈

最佳答案

作为临时修复,您可以从 this link并使用

安装它

pip install some-package.whl

否则,你应该检查the top anwser from here当遇到 ssl 问题时,这似乎解决了问题。

关于python - 在进行任何 pip 安装时,如何避免这个奇怪的 "Could not fetch URL"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44916029/

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