为什么我在运行Python时在Spyder中启动内核时出现错误? [英] Why am I getting "An error ocurred while starting the kernel" in Spyder while running Python?
问题描述
我已在Windows 8.1系统中安装了Anaconda(Python3.7)。但是,在从Spyder控制台运行我的Python代码时,我收到以下错误:
An error occurred while starting the kernel
我已检查PATH环境变量,一切正常。
以下是尝试执行代码时在控制台中收到的详细错误:
回溯(最近一次调用):
CREATE_";C:ProgramDataAnaconda3libsite‑packagesspyderpluginsipythonconsole.py";,_MANAGER_AND_KERNEL_CLIENT中的文件管理器第1572行
kernel_manager.start_kernel(stderr=stderr_handle)
在START_";C:ProgramDataAnaconda3libsite‑packagesjupyter_clientmanager.py";,中文件内核第240行
self.WRITE_Connection_FILE()
文件";C:ProgramDataAnaconda3libsite‑packagesjupyter_clientconnect.py";, WRITE_CONNECTION_FILE中的第547行
内核名称=self.core_name
文件";C:ProgramDataAnaconda3libsite‑packagesjupyter_clientconnect.py";, WRITE_CONNECTION_FILE中的第212行
将Secure_WRITE(Fname)设置为f:
文件";C:ProgramDataAnaconda3libcontextlib.py";,第112行,在中输入
返回Next(self.gen)
文件";C:ProgramDataAnaconda3libsite‑packagesjupyter_clientconnect.py";,第102行,在SECURE_WRITE中
使用os.fdopen(os.open(fname,open_lag,0o600),mode)作为f:
PermissionError:[Errno 13]权限被拒绝:‘C:UserSharatAppDataRoamingjupyter 直到内核bcba4480cd.json‘
推荐答案
(Spyder Maintainer Here)若要解决此问题,请打开蟒蛇提示符并在此处运行
conda update anaconda
conda install jupyter_client=5.3.4
这篇关于为什么我在运行Python时在Spyder中启动内核时出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!