jupyter notebook 启动不起来

解决方法出处:

https://blog.csdn.net/xyh421/article/details/79504350
https://blog.csdn.net/carroll_/article/details/79698316

![@URPSS65IT48BMC6_7BE.png

报错内容

C:\Users\Administrator>jupyter notebook
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts\jupyter-notebook.EXE\__main__.py", line 9, in <module>
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\traitlets\config\application.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py", line 1629, in initialize
    self.init_webapp()
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py", line 1379, in init_webapp
    self.jinja_environment_options,
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py", line 158, in __init__
    default_url, settings_overrides, jinja_env_options)
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py", line 270, in init_settings
    nbextensions_path=jupyter_app.nbextensions_path,
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py", line 1066, in nbextensions_path
    from IPython.paths import get_ipython_dir
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\IPython\__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\IPython\terminal\embed.py", line 15, in <module>
    from IPython.core.interactiveshell import DummyMod, InteractiveShell
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\IPython\core\interactiveshell.py", line 63, in <module>
    from IPython.utils import io
  File "c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\IPython\utils\io.py", line 87, in <module>
    devnull = open(os.devnull, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'nul'

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 128,667评论 19 550
  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 6,918评论 1 38
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML标准。 注意:讲述HT...
    kismetajun阅读 11,178评论 0 33
  • 市模作文 一个人究竟该以怎样的姿态活着? 或轰轰烈烈,或骄傲勇敢,或庸碌悲怆。 或为名利,或为理想,或为情爱。 人...
    王春華阅读 136评论 0 2
  • 在这世上珠宝无数,但大多都与爱情有关,不管是璀璨的钻石,还是幸运的水晶,或是神奇的珍珠,自古至今都在演绎着关于爱情...
    阿拉盯阅读 61评论 0 0