OSError:[Errno None not found] 2 - 在Windows上启动jupyter时出错

时间:2016-10-30 12:09:01

标签: python jupyter

我在Win 10机器上,我安装了Python 3.4。我成功安装了jupyter import re def replace_dbquote(render): return '[OPEN]' + render.group(0).replace('"', '') + '[CLOSE]' string = '"Death to the traitors!" cried the exasperated burghers. "Go along with you", growled the officer.' parser = re.sub('"[^"]*"', replace_dbquote, string) print(parser) 。但是当我发出命令pip install jupyter时,我收到以下错误消息:

jupyter python

如何解决问题?

更新

好的,我安装了Anaconda让我的生活变得更轻松,但是当我发出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 时,我得到了与上面相同的错误。我怎样才能指出正确的jupyter(Anaconda附带的那个)?

2 个答案:

答案 0 :(得分:2)

运行

jupyter notebook

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

请勿尝试运行jupyter pythonjupyter script.ipynb,否则您将收到not found错误

答案 1 :(得分:1)

尝试使用以下命令:

  

jupyter笔记本