Why am i getting “An error ocurred while starting the kernel” in my spyder IDE while running python?

故事扮演 提交于 2019-12-25 01:52:33

问题


I have installed python Anaconda(python 3.7) in my windows 8.1 system. However while running my python code from the Spyder(my IDE) console I am getting An error occurred while starting the kernel error.

I have checked the path in environment variable and everything is correct.

Here is the detailed error received in the console while trying to execute the code.

The error is:

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client kernel_manager.start_kernel(stderr=stderr_handle) File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel self.write_connection_file() File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 547, in write_connection_file kernel_name=self.kernel_name File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 212, in write_connection_file with secure_write(fname) as f: File "C:\ProgramData\Anaconda3\lib\contextlib.py", line 112, in enter return next(self.gen) File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 102, in secure_write with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f: PermissionError: [Errno 13] Permission denied: 'C:\Users\bharat\AppData\Roaming\jupyter\runtime\kernel󈚵bcba4480cd.json'


回答1:


(Spyder maintainer here) To solve this problem please open the Anaconda Prompt and run there

conda update jupyter_client


来源:https://stackoverflow.com/questions/58474328/why-am-i-getting-an-error-ocurred-while-starting-the-kernel-in-my-spyder-ide-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!