PyCharm doesn't recognize Python 3.10, how do I configure it?

Viewed 7167

When I use the python version 3.10 it is recognized as Python 3.1 in PyCharm and this is a deprecated version. My OS is Windows 10.

I'd to like to know how to fit it, I got no answer on the PyCharm issues.

5 Answers

Conda 4.10 is incompatible with python 3.10.

It is not an issue with PyCharm, but a known bug in conda. Update your conda to the newest, or install a miniconda that already has python 3.10.

Read this SO answer for more details.

You can change what python you are using in Settings -> Project: Python -> Project Interpreter

If you don't find the version, you can add it clicking on the icon aside it and locating a python.exe script in your pc.

In my case the default directory for the python.exe is C:\Users<myUser>\PycharmProjects\Python\venv\Scripts\python.exe

so I assume you can just get you version from https://www.python.org/downloads/ and put it there.

enter image description here

It is recognized as python 3.1 instead of 3.10.

If I run my script, the interpreter alerts to a deprecated python verion.

What do you mean by it is recognized as python 3.1 by Pycharm ? You mean that in Pycharm interpreter settings you see Python3.1 instead of Python3.10 . To see the interpreter version https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#interpreter

It it's the case, may be it's just a UI issue for Pycharm. Can you execute this python script:

import sys
print("Python version")
print (sys.version)

from your pycharm ?

Related