Как исправить ошибку ядра ноутбука Jupyter? - PullRequest
0 голосов
/ 20 апреля 2020

У меня проблема с ноутбуком Jupyter.

По некоторым причинам в правом верхнем углу всегда отображается Kernel error рядом с моим ноутбуком Jupyter. Когда я нажимаю на нее, появляется сообщение об ошибке ниже.

Может кто-нибудь помочь мне и подсказать, как это исправить?

Traceback (most recent call last):
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\web.py", line 1592, in _execute
    result = yield result
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 88, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 1133, in run
    value = future.result()
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\tornado\gen.py", line 326, in wrapper
    yielded = next(result)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\manager.py", line 259, in start_kernel
    **kw)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\launcher.py", line 138, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "c:\users\<username>\appdata\local\programs\python\python37\lib\subprocess.py", line 1207, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

Подробности настройки: - Локальная виртуальная среда - Использование pip для установки пакетов

Результаты pip list (когда виртуальная среда активна):

Package                       Version   
----------------------------- ----------
alabaster                     0.7.12
appdirs                       1.4.3
attrs                         19.3.0
autopep8                      1.5
Babel                         2.8.0
backcall                      0.1.0
bleach                        3.1.0
certifi                       2020.4.5.1
chardet                       3.0.4
colorama                      0.4.3
cvxopt                        1.2.3
decorator                     4.4.1
defusedxml                    0.6.0
distlib                       0.3.0
docutils                      0.16
entrypoints                   0.3
filelock                      3.0.12
flask                         1.1.1
idna                          2.8
imagesize                     1.2.0     
importlib-metadata            1.5.0
ipykernel                     5.1.4
ipyparallel                   6.2.5
ipython                       7.13.0
ipython-genutils              0.2.0
ipywidgets                    7.5.1
jedi                          0.16.0
Jinja2                        2.11.1
jsonschema                    3.2.0
jupyter                       1.0.0
jupyter-client                5.3.4
jupyter-console               6.1.0
jupyter-core                  4.6.1
MarkupSafe                    1.1.1
mistune                       0.8.4     
nbconvert                     5.6.1
nbformat                      5.0.4
nose                          1.3.7
notebook                      6.0.3
numpy                         1.18.1
packaging                     20.3
pandas                        1.0.1
pandocfilters                 1.4.2
parso                         0.6.1
pickleshare                   0.7.5
pip                           20.0.2
prometheus-client             0.7.1
prompt-toolkit                3.0.3
pycodestyle                   2.5.0
Pygments                      2.5.2
pyparsing                     2.4.7
pyrsistent                    0.15.7
python-dateutil               2.8.1
pytz                          2019.3
pywin32                       227
pywinpty                      0.5.7
pyzmq                         18.1.1
qtconsole                     4.6.0
requests                      2.21.0
Send2Trash                    1.5.0
setuptools                    41.2.0
six                           1.14.0
snowballstemmer               2.0.0
Sphinx                        3.0.2
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        1.0.3
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.4
terminado                     0.8.3
testpath                      0.4.4
tornado                       5.1.1
traitlets                     4.3.3
urllib3                       1.24.3
virtualenv                    20.0.14
wcwidth                       0.1.8
webencodings                  0.5.1
widgetsnbextension            3.5.1
zipp                          2.1.0
...