San*_*asu 6 python kernel python-3.x jupyter-notebook
在打开 Jupyter notebook 或 Spyder 时,我不断收到“内核错误”通知。
尝试重新安装 anaconda3、ipython、内核,但问题仍然存在。我已经在 Windows 10 系统中下载了 Python 3.7。
我在日志中收到以下错误。
"> 回溯(最近一次调用):文件 "> "C:\Users\AppData\Local\Continuum\anaconda3\lib\site?packages\spyder\plugins\ipytho"nconsole.py",
第 1572 行,在 create_kernel_manager_and_kernel_client kernel_manager.start_kernel(stderr=stderr_handle) 文件“C:\Users\AppData\Roaming\Python\Python37\site?packages\jupyter_client\manager.py”,第 240 行,在 start_connect_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进入 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.
小智 5
它与 python/Jupiter 的基本系统兼容问题。
请pywin32_postinstall.py在您的python安装路径中找到该文件
例子
C:\Users\AppData\Local\Programs\Python\Python38-32\Scripts>
Run Code Online (Sandbox Code Playgroud)
并导航到路径并运行文件/命令 pywin32_postinstall.py -install