【问题标题】:is there any solution for kernel error in jupyter notebook(i installed jupyter notebook in mysystem)jupyter notebook 中的内核错误是否有任何解决方案(我在我的系统中安装了 jupyter notebook)
【发布时间】:2020-08-01 17:18:12
【问题描述】:
Traceback (most recent call last):
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\web.py", line 1703, in _execute
    result = await result
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\dell\appdata\local\programs\python\python37-32\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\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\dell\appdata\local\programs\python\python37-32\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\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_client\multikernelmanager.py", line 158, in start_kernel
    km.start_kernel(**kwargs)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_client\manager.py", line 301, in start_kernel
    kernel_cmd, kw = self.pre_start_kernel(**kw)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_client\manager.py", line 248, in pre_start_kernel
    self.write_connection_file()
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_client\connect.py", line 474, in write_connection_file
    kernel_name=self.kernel_name
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_client\connect.py", line 138, in write_connection_file
    with secure_write(fname) as f:
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_core\paths.py", line 435, in secure_write
    win32_restrict_file_to_user(fname)
  File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\jupyter_core\paths.py", line 361, in win32_restrict_file_to_user
    import win32api
ModuleNotFoundError: No module named 'win32api'

【问题讨论】:

标签: python jupyter-notebook


【解决方案1】:

错误很明显:

ModuleNotFoundError: 没有名为“win32a”的模块

Python 3.6 install win32api?

【讨论】:

  • :\Users\DELL>pip install pywin32 Error processing line 7 of c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pywin32.pth :回溯(最近一次调用最后):文件“c:\users\dell\appdata\local\programs\python\python37-32\lib\site.py”,第 168 行,在 addpackage exec(line) 文件中“",第 1 行,在 ModuleNotFoundError: No module named 'pywin32_bootstrap' Remainder of file ignored 要求已经满足:c:\users\dell\appdata\local\programs\python\python37-32\lib\site 中的 pywin32 -packages (227) 它给了我这个错误
猜你喜欢
  • 2020-07-17
  • 2020-08-07
  • 2020-05-15
  • 2020-10-22
  • 1970-01-01
  • 2015-10-27
  • 2022-12-31
  • 2020-06-20
  • 1970-01-01
相关资源
最近更新 更多