gpt4 book ai didi

python - "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available."尽管作为可信主机运行

转载 作者:行者123 更新时间:2023-12-04 04:00:06 25 4
gpt4 key购买 nike

我知道还有其他几个人在问同样的事情,但对我来说都不起作用。我在 MacOS 上,我收到“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。”无处不在的解决方案是将其作为受信任的包运行:

pip install --trusted-host pypi.org \
--trusted-host files.pythonhosted.org \
requests

虽然我得到了同样的错误。是否可以忽略 ssl?

谢谢

最佳答案

尝试使用以下命令升级 pip 库。

sudo pip install --upgrade

然后使用下面的命令安装python3.x的SSL模块

sudo pip install ssl

如果错误仍然存​​在,请尝试解决方案 here

关于python - "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available."尽管作为可信主机运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63196368/

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