我在 Ubuntu 18.04 LTS 上使用 Spyder 3.2.8,但 Python 版本是 2.7。如何更改為Spyder Python3.6版本?

我在 Ubuntu 18.04 LTS 上使用 Spyder 3.2.8,但 Python 版本是 2.7。如何更改為Spyder Python3.6版本?

我已經從Anaconda的網站下載了Python3.6的Anaconda,但它在Spyder中顯示Python2.7。實際上,我正在做一個線上課程,其中講師在 Windows 上使用 Python3.6,但我有 Ubuntu18.04 LTS,並且無法將間諜程式 Python2.7 切換到 Python3.6。任何幫助,將不勝感激。

答案1

預設情況下 Ubuntu 仍然使用 Python 2.7。但是您可以使用命令運行Python 3 python3。要讓 Spyder 使用 python3,請遵循答案這裡。用於which python3取得python3的絕對路徑。

相關內容