python-3.x 启动Jupyter笔记本时遇到错误[已关闭]

lvmkulzt  于 2023-01-27  发布在  Python
关注(0)|答案(1)|浏览(215)

**已关闭。**此问题不符合Stack Overflow guidelines。当前不接受答案。

我们不允许问题寻求有关书籍、工具、软件库等的推荐。你可以编辑问题,以便可以使用事实和引用来回答问题。
3天前关闭。
Improve this question
我得到下面的错误,而启动Jupyter笔记本

N:\>jupyter notebook
Traceback (most recent call last):
  File "C:\Users\Nithish\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Nithish\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Nithish\anaconda3\Scripts\jupyter-notebook.EXE\__main__.py", line 4, in <module>
  File "C:\Users\Nithish\anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in <module>
    from .services.contents.manager import ContentsManager
  File "C:\Users\Nithish\anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in <module>
    from nbformat import sign, validate as validate_nb, ValidationError
  File "C:\Users\Nithish\anaconda3\lib\site-packages\nbformat\__init__.py", line 11, in <module>
    from . import v1, v2, v3, v4
  File "C:\Users\Nithish\anaconda3\lib\site-packages\nbformat\v4\__init__.py", line 40, in <module>
    from .convert import downgrade, upgrade
  File "C:\Users\Nithish\anaconda3\lib\site-packages\nbformat\v4\convert.py", line 13, in <module>
    from .. import validator
  File "C:\Users\Nithish\anaconda3\lib\site-packages\nbformat\validator.py", line 16, in <module>
    from .json_compat import ValidationError, _validator_for_name, get_current_validator
  File "C:\Users\Nithish\anaconda3\lib\site-packages\nbformat\json_compat.py", line 11, in <module>
    import jsonschema
  File "C:\Users\Nithish\anaconda3\lib\site-packages\jsonschema\__init__.py", line 23, in <module>
    from jsonschema.validators import (
  File "C:\Users\Nithish\anaconda3\lib\site-packages\jsonschema\validators.py", line 432, in <module>
    meta_schema=_utils.load_schema("draft3"),
  File "C:\Users\Nithish\anaconda3\lib\site-packages\jsonschema\_utils.py", line 61, in load_schema
    data = path.read_text(encoding="utf-8")
AttributeError: 'WindowsPath' object has no attribute 'read_text'

我什么都没试过。

相关问题