【问题标题】:I open jupyter on Anaconda3 and appear kernel error, what i do?我在 Anaconda3 上打开 jupyter 并出现内核错误,我该怎么办?
【发布时间】:2020-02-27 20:14:07
【问题描述】:

在内核中出现这样的错误:

Traceback(最近一次调用最后一次): _execute 中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\web.py”,第 1699 行 结果 = 等待结果 运行中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 742 行 yielded = self.gen.throw(*exc_info) # 类型:忽略 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\handlers.py”,第 72 行,在帖子中 类型=mtype)) 运行中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 735 行 价值 = 未来。结果() 运行中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 742 行 yielded = self.gen.throw(*exc_info) # 类型:忽略 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\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\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 735 行 价值 = 未来。结果() 运行中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 742 行 yielded = self.gen.throw(*exc_info) # 类型:忽略 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py”,第 101 行,在 start_kernel_for_session self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name) 运行中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 735 行 价值 = 未来。结果() 包装器中的文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py”,第 209 行 产生 = 下一个(结果) 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\notebook\services\kernels\kernelmanager.py”,第 168 行,在 start_kernel super(MappingKernelManager, self).start_kernel(**kwargs) 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_client\multikernelmanager.py”,第 110 行,在 start_kernel km.start_kernel(**kwargs) 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_client\manager.py”,第 240 行,在 start_kernel self.write_connection_file() 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_client\connect.py”,第 476 行,在 write_connection_file kernel_name=self.kernel_name 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_client\connect.py”,第 141 行,在 write_connection_file 使用secure_write(fname)作为f: 文件“C:\Users\A0165\Anaconda3\lib\contextlib.py”,第 112 行,在 enter 中 返回下一个(self.gen) 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py”,第 404 行,在 secure_write win32_restrict_file_to_user(fname) 文件“C:\Users\A0165\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py”,第 359 行,在 win32_restrict_file_to_user 导入win32api ImportError: DLL load failed: No se encontró el proceso especificado。

【问题讨论】:

    标签: jupyter-notebook


    【解决方案1】:

    我最近在使用 Python3.7-32bit 或 Python3.8-64bit 环境的 Windows10 x86_64bit 上遇到了同样的错误。就我而言,位和版本的不匹配似乎是根本原因。一开始我卸载了所有的 Python 版本和 Anaconda,然后重新安装,如下所示,然后内核错误在 junyper-notebook 上消失了。

    Windows10 x86_64bit
    Python3.7.5-64位
    Anaconda3-2019.10-Windows-x86_64

    *Anaconda 似乎默认使用 \Python37\ 路径,所以我的 Python3.8 不能正常工作。不知道怎么改Python38的路径。

    【讨论】:

      【解决方案2】:

      和sshinobu一样,我最近收到了这个错误here

      短版 - 运行 Anaconda-Navigator 后它消失了,如果需要 Anaconda Prompt 在管理员模式下。希望能帮到你

      【讨论】:

        猜你喜欢
        • 2020-03-06
        • 2020-02-19
        • 1970-01-01
        • 2021-04-27
        • 1970-01-01
        • 2014-04-19
        • 1970-01-01
        • 2013-09-09
        • 2021-08-06
        相关资源
        最近更新 更多