Python Version

85 views
Skip to first unread message

Basil Carayannis

unread,
Jun 6, 2021, 10:06:24 PM6/6/21
to spyder
I use Spyder 5.0.3.
While running running some statistics code I noticed that the
statistics.multimode(...) statement gave me an error and when I checked the version
of python my Spyder was using
import sys
print(sys.version),
I've got version 3.7.9
That explained the error. The Python version that Spyder uses MUST me 3.8 or higher.
The question is:
How can I update Spyder 5.0.3 to use a later version of Python?

yfprojects

unread,
Jun 7, 2021, 10:17:27 AM6/7/21
to spyder
Hello,

I don't know whether there is a way to upgrade Spyder's python if you are using the stand-alone version. But you can use Anaconda and its Spyder version instead. You can follow these instructions (without the steps for installing sklearn) to either use Spyder for Anaconda or your own version of Python with the stand-alone Spyder.
In the Anaconda Navigator you can update the Python version the tab Environments. There you can search for the 'python' package and update it to any version you like.

Kind regards
yfprojects

Florian Obersteiner

unread,
Jun 7, 2021, 11:08:14 AM6/7/21
to yfprojects, spyder
You can select another Python interpreter (i.e. environment) under Preferences -> Python Interpreter. This one can be different from the one you run Spyder from.

Cheers,
F
--
Sent from my Java VM aka "Android" phone with K-9 Mail.

Basil Carayannis

unread,
Jun 8, 2021, 8:53:20 AM6/8/21
to spyd...@googlegroups.com
It worked, thanks!

Basil C. 
Sent from my iPhone 

On Jun 7, 2021, at 11:08, 'Florian Obersteiner' via spyder <spyd...@googlegroups.com> wrote:

You can select another Python interpreter (i.e. environment) under Preferences -> Python Interpreter. This one can be different from the one you run Spyder from.
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/14475AA3-A3DD-4C0E-A603-41F53CF92268%40googlemail.com.
Reply all
Reply to author
Forward
0 new messages