簡體   English   中英

jupyter筆記本中的kernel錯誤有什么解決方案(我在我的系統中安裝了jupyter筆記本)

[英]is there any solution for kernel error in jupyter notebook(i installed jupyter notebook in mysystem)

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'

錯誤很明顯:

ModuleNotFoundError:沒有名為“win32a”的模塊

Python 3.6安裝win32api?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM