如何解决如何修复 Anaconda3 Jupyter Notebook 内核错误?
为了添加新环境,我关注了一些 YouTube 视频来设置所有内容,我的新环境不起作用,因此删除了环境,但在此之后,我的基本环境也停止工作,内核显示此错误。请帮忙。
Traceback (most recent call last):
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\web.py",line 1704,in _execute
result = await result
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py",line 769,in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\RAHUL\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py",line 69,in post
model = yield maybe_future(
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py",line 762,in run
value = future.result()
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py",in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\RAHUL\anaconda3\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\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py",line 100,in start_kernel_for_session
kernel_id = yield maybe_future(
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py",in run
value = future.result()
File "C:\Users\RAHUL\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py",line 176,in start_kernel
kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self,**kwargs))
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_client\multikernelmanager.py",line 186,in start_kernel
km.start_kernel(**kwargs)
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py",line 337,in start_kernel
kernel_cmd,kw = self.pre_start_kernel(**kw)
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_client\manager.py",line 286,in pre_start_kernel
self.write_connection_file()
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py",line 466,in write_connection_file
self.connection_file,cfg = write_connection_file(self.connection_file,File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_client\connect.py",line 136,in write_connection_file
with secure_write(fname) as f:
File "C:\Users\RAHUL\anaconda3\lib\contextlib.py",line 113,in __enter__
return next(self.gen)
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py",line 461,in secure_write
win32_restrict_file_to_user(fname)
File "C:\Users\RAHUL\AppData\Roaming\Python\Python38\site-packages\jupyter_core\paths.py",line 387,in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed while importing win32api: The specified procedure could not be found.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。