当前位置:   article > 正文

已解决RNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python_凝思系统出现pip is configured with locatio

凝思系统出现pip is configured with locatio

pip升级报错
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in e:\anaconda\install_root\lib\site-packages (21.0.1)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/pip/

Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) - skipping

在使用 pip 安装 Python 包时,常会遇到 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available 的警告或错误。这通常是由于 Python 环境中的 SSL 模块未正确安装或配置所致。本文详细介绍了常见的解决方法,包括确保正确安装 OpenSSL,必要时从源代码重新构建 Python 以包含 SSL 支持,验证 SSL 模块的可用性,通过更新 certifi 包来管理 CA 证书,以及临时忽略 SSL 验证(不推荐)。通过这些方法,您可以有效解决 pip 的 TLS/SSL 问题,确保包管理过程顺利安全。

在这里插入图片描述


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/839318
推荐阅读
相关标签