如何在Spyder上更新Python版本?

时间:2020-01-26 13:08:17

标签: python-3.x spyder

我正在使用Python 3.7.5的Spyder IDE。我想切换到Python 3.8,该怎么办?

2 个答案:

答案 0 :(得分:4)

如果您正在使用Anaconda,则需要为其创建一个conda环境,如下所示:

conda create -n py38 python=3.8 spyder-kernels

然后您需要打开Spyder并进入菜单

Tools > Preferences > Python interpreter

选择选项Use the following Python interpreter,然后选择py38环境的Python可执行文件。

您可以找到有关此过程here的更多信息。

答案 1 :(得分:0)

在 v5.0.2 ...

Tools / Preferences / Python interpreter

然后选择

'Use the following Python interpreter'

并浏览到您想要的 python.exe 和“apply” 您需要重新启动 Spyder。

注意你的python版本需要安装spyder包。

pip install spyder-kernels==2.0.*