'PyCharm doesn't recognize Python 3.10, how do I configure it?
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.
Solution 1:[1]
You are likely using an old PyCharm version. Python 3.10 is rather new. Update PyCharm to at least 2020.2. See the relevant ticket in PyCharm's bug tracker https://youtrack.jetbrains.com/issue/PY-42855.
Solution 2:[2]
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.
Solution 3:[3]
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.
Solution 4:[4]
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 ?
Solution 5:[5]
It is recognized as python 3.1 instead of 3.10.
If I run my script, the interpreter alerts to a deprecated python verion.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Pavel Karateev |
Solution 2 | João Marcos Sampaio |
Solution 3 | DanielTuzes |
Solution 4 | behanzin777 |
Solution 5 | ouflak |