python - 默认情况下,Spyder 使用 Spyder Python 2.7 打开,而我的 Anaconda 安装在 Python 3.6+

标签 python ubuntu anaconda spyder

当我使用 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 或您想要的任何版本。

关于python - 默认情况下,Spyder 使用 Spyder Python 2.7 打开,而我的 Anaconda 安装在 Python 3.6+,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58128307/

相关文章:

python - 如何使用 Anaconda (Python 3) 中的 Spyder 解决此编码问题?

python - 删除另一个列表中列表中的第二个值

python - 为什么我的 ZenDesk 宏正在更新,但实际上没有任何变化?

python - 动态响应解包赋值语句

Python Pandas : how to vectorize this function

linux - 查看特定日期编辑的所有文件

python-2.7 - Anaconda:在哪里以及如何安装非分发包来支持 Flask-wtf conda 配方?

python - "[Errno 13] Permission denied"仅在 Ubuntu 服务器上尝试更新/更改文档时

c - FFMpeg示例程序

python - 错误 : Could not find a version that satisfies the requirement pprint (from -r requirements. txt(第 67 行))(来自版本:无)