python - 默认情况下,Spyder 使用 Spyder Python 2.7 打开,而我的 Anaconda 安装在 Python 3.6+ 中
问题描述
当我使用命令 Spyder 从终端打开 Spyder 时,它正在打开 Spyder Python 3.7 控制台,但是每当我使用 SPyder 打开 .py 文件时,它默认使用 Spyder 2.7 打开。
我已经检查了 Spyder 的版本以及我的 Anaconda 版本。即使在我的 Ubuntu 中,python 版本也是 3.7+
解决方案
Spyder 默认使用该python
命令,在 Linux 上默认为 python 2.7。要解决此问题,请将 python 命令设置为表示 python 3 或您想要的任何版本。
推荐阅读
- java - runOnUi 减慢应用程序并使其强制关闭
- date - 在 Hive 中获取最后一个工作日的第 15 个日期-yyyyMMdd(仅周末除外)
- excel - 插入计算值而不是公式
- excel - Outlook 中几个类别的每周/每月时间报告
- android - 基于 iMX6 的 Udoo Neo 板的 HDMI LCD 渐晕边框问题
- c# - 使用 csc.exe 构建时访问内部异常
- time - 为什么 Adaptive AUTOSAR 中需要 TSync(时间同步)?
- angular - 库中的 APP_INITIALIZER 函数
- javascript - HTTP 请求,对象/数组解构
- java - 关于 Java 8 OptionalInt.of 参数的问题