gpt4 book ai didi

python - 尝试打开 Jupyter notebook 或 Spyder 时出现内核错误

转载 作者:行者123 更新时间:2023-12-03 20:27:20 25 4
gpt4 key购买 nike

在打开 Jupyter notebook 或 Spyder 时,我不断收到“内核错误”通知。

尝试重新安装 anaconda3、ipython、内核,但问题仍然存在。我已经在 Windows 10 系统中下载了 Python 3.7。

我在日志中收到以下错误。

"> 回溯(最近一次调用最后一次):文件
"> "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\plugins\ipytho"nconsole.py",

line 1572, in create_kernel_manager_and_kernel_client kernel_manager.start_kernel(stderr=stderr_handle) File "C:\Users\AppData\Roaming\Python\Python37\site‑packages\jupyter_client\manager.py", line 240, in start_kernel self.write_connection_file() File "C:\Users\AppData\Roaming\Python\Python37\site‑packages\jupyter_client\connect.py", line 476, in write_connection_file kernel_name=self.kernel_name File "C:\Users\AppData\Roaming\Python\Python37\site‑packages\jupyter_client\connect.py", line 141, in write_connection_file with secure_write(fname) as f: File "C:\Users\AppData\Local\Continuum\anaconda3\lib\contextlib.py", line 112, in enter return next(self.gen) File "C:\Users\AppData\Roaming\Python\Python37\site‑packages\jupyter_core\paths.py", line 404, in secure_write win32_restrict_file_to_user(fname) File "C:\Users\AppData\Roaming\Python\Python37\site‑packages\jupyter_core\paths.py", line 359, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: The specified procedure could not be found.

最佳答案

它与 python/Jupiter 的基本系统兼容问题。

请找到文件pywin32_postinstall.py在你的python安装路径中

例子

C:\Users\AppData\Local\Programs\Python\Python38-32\Scripts>

并导航到路径并运行文件/命令 pywin32_postinstall.py -install

关于python - 尝试打开 Jupyter notebook 或 Spyder 时出现内核错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58341160/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com