ipython - 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,但我仍然遇到同样的错误。请检查下面的图片
您能否就如何修复错误提出解决方案?
解决方案
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
Hope it's helpful to someone!
推荐阅读
- node.js - require(variable) 导致错误找不到模块“。”
- java - java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder SBT Scala
- apache-kafka - 嵌入式 Kafka 测试(由 SBT 运行)间歇性失败并出现 ZooKeeperServer 错误
- java - Java 验证列表 Openoffice
- ios - 给定具有多行标签的集合视图单元格的宽度,如何获得首选的 AutoLayout 高度?
- python - 将包含字母和数字的字符串转换为 int
- regex - 使用python仅从文本中提取指定的值
- android - 生成用于发布的 APK 的 Proguard 错误 - 任务“:app:transformClassesAndResourcesWithProguardForRelease”执行失败
- javascript - 在 vuejs 项目中单击之间的特定时间禁用材料设计按钮
- android - 具有双向数据绑定的自定义视图