简体   繁体   English

“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。” 尽管作为受信任的主机运行

[英]"pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." Despite running as trusted host

I know there's several other people asking the same thing but neither works for me.我知道还有其他几个人在问同样的问题,但都不适合我。 I'm on MacOS and I'm getting "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available."我在 MacOS 上,我得到“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。” The solution everywhere is to run it as a trusted package:无处不在的解决方案是将其作为受信任的 package 运行:

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

I am getting the same error though.我得到了同样的错误。 Is it possible to ignore ssl?是否可以忽略 ssl?

Thanks谢谢

Try to upgrade pip library using the below command.尝试使用以下命令升级 pip 库。

sudo pip install --upgrade

Then after use below command to install SSL module of python3.x然后使用下面的命令安装 python3.x 的 SSL 模块

sudo pip install ssl

If the error still persists then try the solution here如果错误仍然存在,请在此处尝试解决方案

openssl version maybe too low. openssl 版本可能太低。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip 给出错误“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。” 在 mac - pip gives error "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." in mac .pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。 (Windows 10) - .pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. (Windows 10) 警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。 [Ubuntu 22.04] - WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [Ubuntu 22.04] “警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。” Ubuntu 21.04 Python 3.8.10 - "WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." Ubuntu 21.04 Python 3.8.10 pip3.7 ubuntu 16 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available - pip3.7 ubuntu 16 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available pip install … does not work: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available - pip install … does not work: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available Python: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available - Python: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available “pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用” - “pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available” pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用 - pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 安装 Tensorflow 时如何解决“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用”? - How to fix "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available" when installing Tensorflow?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM