OSError: [Errno None not found] 2 - error when launching jupyter on Windows

OSError: [Errno None not found] 2 - error when launching jupyter on Windows

我在 Win 10 机器上,我安装了 Python 3.4。我成功安装了 jupyter pip install jupyter。但是当我发出命令 jupyter python 时,我收到以下错误消息:

D:\..\Python>jupyter python
Traceback (most recent call last):
  File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\jupyter.exe\__main__.py", line 9, in <module>
  File "c:\python34\lib\site-packages\jupyter_core\command.py", line 186, in main
    _execvp(command, sys.argv[1:])
  File "c:\python34\lib\site-packages\jupyter_core\command.py", line 104, in _execvp
    raise OSError('%r not found' % cmd, errno.ENOENT)
OSError: [Errno None not found] 2

如何解决问题?

更新

好的,我安装了 Anaconda 是为了让我的生活更轻松,但是当我发出 jupyter python 时,我仍然得到与上面相同的错误。我如何指向正确的 jupyter(Anaconda 附带的那个)?

尝试使用以下命令:

jupyter-notebook

运行

jupyter notebook

运行 是一个网络服务,您可以在浏览器中连接到该网络服务,如 localhost:8888(除非您更改默认端口)。 然后您可以在那里打开笔记本或 iPython 文件。

不要尝试 运行 jupyter pythonjupyter script.ipynb 否则你会得到 not found 错误