Closed leavor closed 2 years ago
I also created python=3.9.7, the issue is the same!
Hey @leavor, thanks for reporting. Please open the Anaconda prompt and run there
spyder --reset
That should fix your problem, which is most likely caused by not having the right version of Spyder-kernels in the environment you have selected in Preferences > Python interpreter
.
@ccordoba12, do as you say, can solve this error
Great! Thanks for letting us know about it.
To not force users to do a reset to solve this problem, we'll inform them what's the interpreter that doesn't have the right version of spyder-kernels
installed in the message you displayed in the first screenshot.
I think that will help them to understand to better understand what's happening in this case.
Hey @leavor, thanks for reporting. Please open the Anaconda prompt and run there
spyder --reset
That should fix your problem, which is most likely caused by not having the right version of Spyder-kernels in the environment you have selected in
Preferences > Python interpreter
.
Hey @ccordoba12 ,
I saw you helping many people in the same case of kernels problems. I also have this problem with the same error message. It tell me that "Your Python environment or installation doesn't have the spyder-kernels module or the right version of it installed". So I did what you said and went in preference and changed the python interpreter to "default" (it was before in "- /opt/anaconda3/bin/python"). I'm not very good at understanding that but I guess I'M now using the basic python of my computer and not the one from anaconda ???. And well, it's working now, but it's means im not having any package that was on my anaconda environment. ??
I'm not very good at understanding that but I guess I'M now using the basic python of my computer and not the one from anaconda ???
Not exactly. That simply means that you're using the same Python interpreter on which Spyder is running (because Spyder is also a Python application).
And well, it's working now, but it's means im not having any package that was on my anaconda environment. ??
Possibly. Did you use our macOS app to install Spyder?
Hey @leavor, thanks for reporting. Please open the Anaconda prompt and run there
spyder --reset
That should fix your problem, which is most likely caused by not having the right version of Spyder-kernels in the environment you have selected in
Preferences > Python interpreter
.
It worked once, but the problem reoccurred.
I have the same issue. I've installed the spyder alone. Without anaconda. and also, in spyder's terminal, when i go pip install "the kernels" says: no module named "pip" what am i doing wrong?
@erdoganb, pip
is not provided in our Windows and Mac installers so that people can't easily break them by installing other things with it. If you want to use other packages that don't come with the installers, please read our documentation on how to do that.
What is the "Anaconda Prompt" and how do I open it?
@darcycordell, if you're on Windows, look for "Anaconda Prompt" in the Start menu. If not, simply open a terminal (Terminal.app on Mac or Konsole/Gnome Terminal on Linux).
Then, see the video shown in the link I posted in my previous comment to understand what you need to do.
Problem Description
To create a new virtual environment, use the following command:
Start spyder, the following error occurred:
Restart kernel, the following occurred:
Versions
Dependencies