我遵循指令並運行ipython.exe筆記本:ipithon筆記本不起作用
> [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>jupyter notebook Traceback (most recent call last): File "C:\Miniconda3\Scripts\jupyter-script.py", line 5, in sys.exit(jupyter_core.command.main()) File "C:\Miniconda3\lib\site-packages\jupyter_core\command.py", line 186, in main _execvp(command, sys.argv[1:]) File "C:\Miniconda3\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
我需要我的工作保存爲ipython筆記本。我該怎麼做?
這不是你的錯。您的安裝不完整或受損。此外,Jupyter Inc.忽略了倒退不相容變更的第一定律(即「不」),這意味着您的教程不準確。不幸的是,我不知道從哪裏得到好的安裝或最新的教程。 – zwol