spyder: Ask me to install spyder-kernels, but doesn't work after the installation

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

The Python environment or installation whose interpreter is located at

C:\Users\miraboreasu\Miniconda3\envs\spyder‑env\python.exe

doesn’t have the spyder‑kernels module or the right version of it installed (>= 2.2.1 and < 2.3.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.2 or pip install spyder‑kernels==2.2.*

I tried conda install spyder‑kernels=2.2, but still have this, and reset the IDE, it doesn’t work

I would like to say more, I have tried VSCode, Pycharm. I really like Spyder, since it is the one when I just started learning Python back in the old days. But I don’t know why this happened, since I used to use prompt in Tools, but now it has gone, anyway, please help me

What steps reproduce the problem?

  1. Download the latest version from https://www.spyder-ide.org/
  2. Use miniconda to create a new environment following https://docs.spyder-ide.org/5/faq.html#using-packages-installer
  3. Then when I change the preference and restart the spyder, this happened

What is the expected output? What do you see instead?

https://ibb.co/3hNH4W3

The Python environment or installation whose interpreter is located at

C:\Users\miraboreasu\Miniconda3\envs\spyder‑env\python.exe

doesn’t have the spyder‑kernels module or the right version of it installed (>= 2.2.1 and < 2.3.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.2 or pip install spyder‑kernels==2.2.*

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: Just download the lastest one today
  • Python version: 3.9.7
  • Qt version:
  • PyQt version:
  • Operating System name/version: Win10

Dependencies

PASTE DEPENDENCIES HERE

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

conda install -c conda-forge spyder‑kernels=2.2.1

It works, thank you!