我在 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
运行一个网络服务,然后您可以在浏览器中连接到该网络服务,如 localhost:8888 (除非您更改默认端口)。 然后您可以在那里打开笔记本或 iPython 文件。
不要尝试运行 jupyter python
或 jupyter script.ipynb
否则你会得到 not found
错误
关于python - 操作系统错误 : [Errno None not found] 2 - error when launching jupyter on Windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40328878/