-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spyder kernels installed but not recognised? #17608
Comments
Hey @dixonb3, thanks for reporting. Please open a system terminal (i.e. cmd.exe), run there
and paste here the contents printed on it after that. |
Hi @ccordoba12 , thanks for the reply. See below: C:\Users\dixonb3>python -m spyder_kernels.console To exit, you will have to explicitly quit this process, by either sending To read more about this, see ipython/ipython#2049 To connect another client to this kernel, use: |
Ok, that means that the kernel is working correctly. @dalthviz, can you check if our Windows app can connect to an environment in which spyder-kernels was installed with pip? |
@ccordoba12 I was able to use an interpreter with spyder-kernels installed with pip (although it is a conda env). @dixonb3 after changing the interpreter did you created a new console or restarted the one showing you the spyder-kernels version message? |
@dalthviz: I created a new console and that's when the spyder-kernels message appeared. It may be worth mentioning I got the same issue with a previous version of spyder (5.1.1?). |
Could you run spyder in debug mode and post here the log file? For that you can go to Also , thinking about your Python installation, you are using a standalone version of Python as custom interpreter, right? And to install spyder-kernels you don't actually use an environment but that sort of global installation? What happens when you Let us know! |
Hi @dalthviz , C:\Users\dixonb3>python
So the correct version is definitely installed. To prove I'm using the python installation I have pointed spyder to- here's the location of the executable when running python via cmd:
And here are the first two lines of the error appearing in the spyder IPython Console: The Python environment or installation whose interpreter is located at I just don't understand what is going wrong. Thanks very much for your continued help. |
Checked the debug log file but I didn't see anything out of normal. The log even shows the start of the console kernel too:
So seems like for some reason the Could you try to use the option to connect manually to a initialized kernel at Also, as a workaround, you could try to use the command metioned by @ccordoba12 to start manually a kernel and then use the Let us know if you have/get new info or the workaround helps! |
Hi @dalthviz and @ccordoba12 - The Connect to an existing kernel option worked! Thanks so much for your help! |
It's very strange that the connection can't be established automatically for you, but at least you have this workaround. |
I have met the same issue... |
This comment was marked as off-topic.
This comment was marked as off-topic.
I had this issue as well. The workaround that @ccordoba12 provided to connect to an existing kernel works for me, but I'm interested in the solution above... @clarezei, how did you change |
I have Python and Spyder installed on my Windows 10 computer for all users, I had the same problem. Using Command Prompt - Run as administrator to install spyder-kernels solved the problem. |
I have this issue every time I install Spyder. So far @yuekanjiao and @ghost solutions have worked very well. |
Hi, I just ran into this problem too. The solution was a little simpler in my case. The Spyder documentation does not specify that you should use the python.exe file in your environment when changing the default interpreter. There is a higher level python.exe file in the miniconda folder that will produce this error. |
I have the same issue. I've read the previous replies, and I think the problem is maybe we do not have a PYTHON installation as admin. For example, when I install a package through pip I have this warning: |
@Fabien98 seconded. I also ran into this issue, and was able to solve it by uninstalling spyder-kernels and reinstalling as admin. |
Thanks @devriea it works for me now. |
Good point @KrisztianKaszas. However, that shouldn't be necessary if we make some changes in Spyder itself. @mrclary, could you check if the |
On my Windows VM, for v5.4.5 and v6.0.0a2, in IPython Console and our Internal console I see |
Thanks for checking @mrclary. Did you start Spyder in a terminal or through the Windows Start Menu? |
I launched both instances from the Windows Start Menu. |
@dalthviz, what do you think about this one? It seems another instance of a problem we have fixed for other plugins in the past: Could you check if |
@ccordoba12, what do you mean by "stand alone Python" installation? When I tested above, I used the standalone Spyder installers (downloaded from our release page on Github) and launching from the Start Menu, not a standard conda installation or dev environment. |
I mean a Python that you download from python.org and install it in |
Hi. Thank you for sharing the resolution. I am facing the same issue on my Mac. I installed Spyder as a standalone installer. When I run pip3 list, I see Spyder kernels installed. However, when I select my python interpreter through the virtual environment, I am getting an error as the users above. _The Python environment or installation whose interpreter is located at You can install it by activating your environment first (if necessary) and then running in a system terminal: |
The same solution worked for me in Windows 11 and Spyder 5.5.0. |
are you solve this issue? |
I know this is an old thread, but I had this exact same problem and your fix solved it for me. Thank you! |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I'm a novice so forgive my ignorance!
I'm using a different python environment to spyder's default. I have checked that the correct version of spyder-kernels is installed in this environment, however when using spyder I still get the following message in the IPython console:
The Python environment or installation whose interpreter is located at
C:\Program Files\Python39\python.exe
doesn't have the spyder‑kernels module or the right version of it installed (>= 2.3.0 and < 2.4.0). Without this module is not possible for Spyder to create a console for you.
You can install it by activating your environment (if necessary) and then running in a system terminal:
conda install spyder‑kernels=2.3
or
pip install spyder‑kernels==2.3.*
The correct version is definitely installed:
C:\Users\dixonb3>pip list
Package Version
asttokens 2.0.5
backcall 0.2.0
cloudpickle 1.6.0
colorama 0.4.4
cycler 0.10.0
debugpy 1.6.0
decorator 5.0.9
entrypoints 0.4
executing 0.8.3
ipykernel 6.12.1
ipython 7.32.0
ipython-genutils 0.2.0
jedi 0.18.0
jupyter-client 7.2.1
jupyter-core 4.9.2
kiwisolver 1.3.1
matplotlib 3.4.2
matplotlib-inline 0.1.2
nest-asyncio 1.5.5
numpy 1.21.0
packaging 21.3
parso 0.8.2
pickleshare 0.7.5
Pillow 8.2.0
pip 21.1.1
prompt-toolkit 3.0.19
psutil 5.9.0
pure-eval 0.2.2
pydicom 2.2.2
Pygments 2.9.0
pyparsing 2.4.7
python-dateutil 2.8.2
pywin32 301
pyzmq 22.3.0
setuptools 56.0.0
six 1.16.0
spyder-kernels 2.3.0
stack-data 0.2.0
tornado 6.1
traitlets 5.1.1
wcwidth 0.2.5
And the executable below matches the location I have set in the spyder python interpreter preferences:
C:\Users\dixonb3>python
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
What steps reproduce the problem?
What is the expected output? What do you see instead?
Expected: functioning iPython console.
Seen instead: error as above (no spyder-kernels >= 2.3.0 despite it being installed)
Versions
Dependencies
Extremely grateful for any help- I'm going insane.
The text was updated successfully, but these errors were encountered: