Wrong version of python
Hi everyone!
Im new to python and pycharm and trying to learn. I have installed anaconda and pycharm from anaconda navigator. When I start pycharm project I start it from anaconda environment. What I react on is that when I creat a new project from anaconda environment I start it as python version 3.10 which command prompt confirms is the current version.
However the interpreter keeps telling me its python 3.11 which is wrong and creates problems. How do I fix this?
Thanks in advance!
Please sign in to leave a comment.
Hi, I assume the conda environment with python 3.10 is already created. So, please try creating a new interpreter in PyCharm, select "Conda environment | Existing environment", and point to your python 3.10 executable from the correct conda environment.
More info on interpreters: https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html
If it doesn't work, could you please specify the path to your interpreter and it's "python -V" output?
I'm seeing the same thing. This appears to simply be a display issue only. The environment works in PyCharm. It is of course available through the Anaconda Prompt or Jupyter, etc.
Steps to reproduce:
1. Create environment in Anaconda Navigator. Specify python = 3.10
2. PyCharm > Conda environment > Existing environment.
note environment name in Python Interpreter -> Python 3.11 (new_env)
This is also displayed in the status bar at the lower right corner.
I reproduced the issue as well and reported it as https://youtrack.jetbrains.com/issue/PY-53178
Please follow and vote.
This appears to simply be a display issue only. The environment works in PyCharm.
voted for the Best!