首页 > 解决方案 > 默认情况下,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+

标签: pythonubuntuanacondaspyder

解决方案


Spyder 默认使用该python命令,在 Linux 上默认为 python 2.7。要解决此问题,请将 python 命令设置为表示 python 3 或您想要的任何版本。


推荐阅读