使用pip安装jupter报错并且用conda安装jupter后,启动jupter也报一样的错误:WARNING: There was an error checking the latest version of pip.
ERROR: Exception:
Traceback (most recent call last):
File "D:\miniconda\Lib\site-packages\pip_internal\cli\base_command.py", line 106, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\cli\base_command.py", line 97, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\commands\install.py", line 332, in run
session = self.get_default_session(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\cli\index_command.py", line 76, in get_default_session
self._session = self.enter_context(self._build_session(options))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\cli\index_command.py", line 95, in _build_session
ssl_context = _create_truststore_ssl_context()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\site-packages\pip_internal\cli\index_command.py", line 40, in _create_truststore_ssl_context
from pip.vendor import truststore
File "D:\miniconda\Lib\site-packages\pip_vendor\truststore_init.py", line 17, in
_sslobj = _ssl.create_default_context().wrap_bio(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\miniconda\Lib\ssl.py", line 775, in create_default_context
context.load_default_certs(purpose)
File "D:\miniconda\Lib\ssl.py", line 596, in load_default_certs
self._load_windows_store_certs(storename, purpose)
File "D:\miniconda\Lib\ssl.py", line 588, in _load_windows_store_certs
self.load_verify_locations(cadata=certs)
ssl.SSLError: [X509V3: INVALID_CERTIFICATE] invalid certificate (_ssl.c:4047)
请问这种要咋办找了很久都没有解决
python使用pip安装jupter报错,并且用conda安装jupter后,启动jupter也报一样的错误
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
6条回答 默认 最新
阿里嘎多学长 2025-06-12 16:43关注阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程
问题解答
你遇到的问题是使用
pip安装jupyter时报错,并且使用conda安装jupyter后,启动jupyter也报错。错误信息中包含WARNING: There was an error checking the latest version。可能的解决方案是:
- 检查 Python 的 SSL 证书是否正确。可以使用以下命令检查:
import ssl print(ssl.get_default_verify_paths())如果 SSL 证书不正确,可以尝试更新 SSL 证书。
- 使用
pip安装jupyter时,添加--trusted-host选项指定可信任的主机:
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org jupyter- 使用
conda安装jupyter时,尝试使用--no-ssl-verify选项:
conda install --no-ssl-verify jupyter- 检查 Python 的版本是否支持
jupyter。jupyter的最低支持版本是 Python 3.6,如果你的 Python 版本低于 3.6,可以升级 Python 版本。
如果以上解决方案不起作用,可以提供更多的错误信息和环境配置信息,以便更好地帮助你解决问题。
解决 无用评论 打赏 举报