首页 > 解决方案 > Spyder 4.2.5 - iPython 控制台不适用于 Python 3.8.0

问题描述

我已经在 Windows 10 机器上安装了 Python 3.8 和 Spyder 4.2.5。我已将 Python 解释器从默认值更改为 3.8。进行这些更改后,iPython 控制台显示以下错误

您的 Python 环境或安装未安装 spyder‑kernels 模块或其正确版本(>= 1.10.0 和 < 1.11.0))。如果没有这个模块,Spyder 就无法为您创建控制台。您可以通过在系统终端中运行来安装它: conda install spyder‑kernels or pip install spyder‑kernels

所以,我已经关闭了 Spyder IDE,执行了安装 spyder-kernels 的命令并重新启动了 Spyder,但我仍然遇到同样的错误。请检查下面的图片

在此处输入图像描述

您能否就如何修复错误提出解决方案?

标签: ipythonspyderpython-3.8

解决方案


I got the same error with Spyder 5.1.4 when I changed python interpreter from default python that's installed with Spyder to a my own python installation v3.9.5.

And every time I execute the command pip install spyder-kernels. It show the message:

Fatal error in launcher: Unable to create process using '"d:\program\python\python39\python.exe" "d:\program\Python\Python39\Scripts\pip.exe" install spyder-kernels': The system cannot find the file specified.

My solution is python3 -m pip install spyder-kernels==2.1.1

You can find the compatible kernel version of your spyder in this link and replace it with 2.1.1

http://docs.spyder-ide.org/current/troubleshooting/common-illnesses.html#spyder-kernels-not-installed-incompatible

Hope it's helpful to someone!


推荐阅读