如何解决安装python包时无法获取URL https:pypi.orgsimplejson-schema的错误?

2026-05-24 15:371阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计213个文字,预计阅读时间需要1分钟。

如何解决安装python包时无法获取URL https://pypi.org/simple/json-schema/的错误?

无法获取 URL https://pypi.org/simple/json/ - schema/json : 确认 SSL 证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443): 最大重试次数超出,URL:/simple/json/

问题现象

Could not fetch URL pypi.org/simple/json-schema/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/json-schema/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) - skipping
ERROR: Could not find a version that satisfies the requirement json_schema (from versions: none)
ERROR: No matching distribution found for json_schema

解决方案

正常安装的时候我们都是用 ​​pip install​​​ 三方库
如果出现上述错误 ,就把命令改成
​​​pip --trusted-host pypi.python.org install​​ 三方库

如何解决安装python包时无法获取URL https://pypi.org/simple/json-schema/的错误?

pip install 后面跟自己要安装的库名即可

python -m pip install 库名 --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

参考链接

本文共计213个文字,预计阅读时间需要1分钟。

如何解决安装python包时无法获取URL https://pypi.org/simple/json-schema/的错误?

无法获取 URL https://pypi.org/simple/json/ - schema/json : 确认 SSL 证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443): 最大重试次数超出,URL:/simple/json/

问题现象

Could not fetch URL pypi.org/simple/json-schema/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/json-schema/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) - skipping
ERROR: Could not find a version that satisfies the requirement json_schema (from versions: none)
ERROR: No matching distribution found for json_schema

解决方案

正常安装的时候我们都是用 ​​pip install​​​ 三方库
如果出现上述错误 ,就把命令改成
​​​pip --trusted-host pypi.python.org install​​ 三方库

如何解决安装python包时无法获取URL https://pypi.org/simple/json-schema/的错误?

pip install 后面跟自己要安装的库名即可

python -m pip install 库名 --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

参考链接