我按照说明操作ipython.exe笔记本:
> [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is
> deprecated and will be removed in future versions.
> [TerminalIPythonApp] WARNING | You likely want to use `jupyter
> notebook` in the future Traceback (most recent call last): File
> "C:\Miniconda3\Scripts\ipython-script.py", line 5, in <module>
> sys.exit(IPython.start_ipython()) File "C:\Miniconda3\lib\site-packages\IPython\__init__.py", line 119, in
> start_ipython
> return launch_new_instance(argv=argv, **kwargs) File "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 657, in launch_instance
> app.initialize(argv) File "<decorator-gen-110>", line 2, in initialize File
> "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 87, in catch_config_error
> return method(app, *args, **kwargs) File "C:\Miniconda3\lib\site-packages\IPython\terminal\ipapp.py", line 300,
> in initialize
> super(TerminalIPythonApp, self).initialize(argv) File "<decorator-gen-7>", line 2, in initialize File
> "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 87, in catch_config_error
> return method(app, *args, **kwargs) File "C:\Miniconda3\lib\site-packages\IPython\core\application.py", line
> 446, in initialize
> self.parse_command_line(argv) File "C:\Miniconda3\lib\site-packages\IPython\terminal\ipapp.py", line 295,
> in parse_command_line
> return super(TerminalIPythonApp, self).parse_command_line(argv) File "<decorator-gen-4>", line 2, in parse_command_line File
> "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 87, in catch_config_error
> return method(app, *args, **kwargs) File "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 514, in parse_command_line
> return self.initialize_subcommand(subc, subargv) File "C:\Miniconda3\lib\site-packages\IPython\core\application.py", line
> 236, in initialize_subcommand
> return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv) File "<decorator-gen-3>",
> line 2, in initialize_subcommand File
> "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 87, in catch_config_error
> return method(app, *args, **kwargs) File "C:\Miniconda3\lib\site-packages\traitlets\config\application.py",
> line 445, in initialize_subcommand
> subapp = import_item(subapp) File "C:\Miniconda3\lib\site-packages\ipython_genutils\importstring.py",
> line 31, in import_item
> module = __import__(package, fromlist=[obj]) ImportError: No module named 'notebook'
现在如果我运行jupyter笔记本,我得到:
C:\ Miniconda3 \ Scripts&gt; jupyter notebook Traceback(最近的电话 last):文件&#34; C:\ Miniconda3 \ Scripts \ jupyter-script.py&#34;,第5行,in sys.exit(jupyter_core.command.main())文件&#34; C:\ Miniconda3 \ lib \ site-packages \ jupyter_core \ command.py&#34;,第186行, 在主要 _execvp(command,sys.argv [1:])File&#34; C:\ Miniconda3 \ lib \ site-packages \ jupyter_core \ command.py&#34;,104行, 在_execvp中 引发OSError(&#39;%r未找到&#39;%cmd,errno.ENOENT)OSError:[Errno None not found] 2
我需要将我的工作保存为ipython笔记本。我该怎么办?
答案 0 :(得分:2)
就像zwol
所说,您的安装可能已经搞砸了。你可以做两件事。
创建一个新环境并在那里安装ipython / jupyter。我先试试这个。
conda create -n myenv python=3
activate myenv
conda install jupyter
jupyter notebook
答案 1 :(得分:0)
我遇到了同样的问题,但我创造了一个&#39; testenv&#39;并在那里运行jupyter笔记本,它对我有用。 有些东西搞砸了主安装,但你可以在不同的环境中安装工作。