繁体   English   中英

当我制作 python 3 jupyter 笔记本时,这个内核错误是什么?

[英]What is this kernal error when I make a python 3 jupyter notebook?

我刚刚安装了 miniconda、jupyter notebook、python 和一些包。

我有合适的pywin32版本。

回溯(最后一次调用):文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\tornado\web.py”,第 1703 行,在 _execute 结果 = 等待结果文件“c:\ users\kivix\miniconda3\envs\thematrix\lib\site-packages\tornado\gen.py", line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore File "c:\users\ kivix\miniconda3\envs\thematrix\lib\site-packages\notebook\services\sessions\handlers.py”,第 69 行,在 model = yield maybe_future(文件“c:\users\kivix\miniconda3\envs\thematrix\ lib\site-packages\tornado\gen.py”,第 735 行,运行值 = future.result() 文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\tornado\gen. py", line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore File "c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\notebook\services\sessions\ sessionmanager.py",第 88 行,在 create_session kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name) 文件中 “c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\tornado\gen.py”,第 735 行,运行值 = future.result() 文件“c:\users\kivix\miniconda3\ envs\thematrix\lib\site-packages\tornado\gen.py", line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore File "c:\users\kivix\miniconda3\envs\ thematrix\lib\site-packages\notebook\services\sessions\sessionmanager.py”,第 100 行,在 start_kernel_for_session kernel_id = yield maybe_future(文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\ tornado\gen.py",第 735 行,运行值 = future.result() 文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\tornado\gen.py”,第 209 行,在 wrapper yielded = next(result) File "c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\notebook\services\kernels\kernelmanager.py",第 168 行,在 start_kernel super(MappingKernelManager, self ).start_kernel(**kwargs) 文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\jupyter_client\multikernelmanager.py”,行 158,在 start_kernel km.start_kernel(**kwargs) 文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\jupyter_client\manager.py”中,第 301 行,在 start_kernel kernel_cmd,kw = self .pre_start_kernel(**kw) 文件“c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\jupyter_client\manager.py”,第 248 行,在 pre_start_kernel self.write_connection_file() 文件“c:\ users\kivix\miniconda3\envs\thematrix\lib\site-packages\jupyter_client\connect.py”,第 468 行,在 write_connection_file self.connection_file,cfg = write_connection_file(self.connection_file,文件“c:\users\kivix\miniconda3 \envs\thematrix\lib\site-packages\jupyter_client\connect.py”,第 138 行,在 write_connection_file 中,secure_write(fname) 为 f:文件“c:\users\kivix\miniconda3\envs\thematrix\lib\contextlib. py",第 113 行,输入return next(self.gen) File "c:\users\kivix\miniconda3\envs\thematrix\lib\site-packages\jupyter_core\paths.py",第 435 行,在secure_write win32_restrict_file_to_user( fname) 文件 "c:\users\kivi x\miniconda3\envs\thematrix\lib\site-packages\jupyter_core\paths.py", line 361, in win32_restrict_file_to_user import win32api ImportError: DLL load failed while importing win32api: The specified module can not be found.

我昨天遇到了类似的问题。 尝试在 CMD 中运行此代码

conda install pywin32

如果您使用 Anaconda,请安装它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM