Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kernel error after updating Spyder in anaconda [duplicate]

I updated Spyder to version 4.1.0 (together with all other packages in anaconda). Spyder itself works fine however the kernel is not working. I get the following error and can't figure out how to solve it:

An error ocurred while starting the kernel
The error is:

Traceback (most recent call last):
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1209, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\manager.py", line 267, in start_kernel
self.kernel = self._launch_kernel(kernel_cmd, env=env, **kw)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\manager.py", line 211, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\launcher.py", line 135, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
like image 835
Martijn Avatar asked Mar 18 '20 10:03

Martijn


People also ask

How do I fix my Anaconda Spyder?

Restart your machine, in case the problem lies with a lingering process or another such issue. From the Anaconda Prompt/Terminal/command line (on Windows/Mac/Linux), run the command spyder --reset , which will restore Spyder's config files to their defaults, which solves a huge variety of Spyder issues.

What is kernel in Spyder?

Package that provides Jupyter kernels for use with the consoles of Spyder, the Scientific Python Development Environment. These kernels can launched either through Spyder itself or in an independent Python session, and allow for interactive or file-based execution of Python code inside Spyder.

Does Anaconda install Spyder?

Spyder is included by default in the Anaconda Python distribution, which comes with everything you need to get started in an all-in-one package, and is our recommended installation method on Linux (and supported on the other platforms too).


Video Answer


2 Answers

I had the very same issue, I started Spyder using Anaconda Navigator instead of calling only Spider (desktop icon) and it worked.

Somehow the logic calling Spyder outside Anaconda Navigator misses something Anaconda Navigator doesn´t.

like image 126
Giovanni Avatar answered Nov 15 '22 00:11

Giovanni


So somehow if i start Spyder graphically from the anaconda menu it works (which solves the problem).

like image 38
Martijn Avatar answered Nov 15 '22 01:11

Martijn