Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm reports wrong Python version

As per the screenshot, my system reports Python 3.6.5 but PyCharm is reporting the same file as 3.5.2.

Does anyone know how to fix?

enter image description here

EDIT: I suspect it is because for a previous project I set the interpreter version and set "Apply this to all future projects" option. And then upgraded Anaconda.

like image 978
P i Avatar asked Mar 30 '26 00:03

P i


1 Answers

The name of the project is a free text string, you can change it to whatever you want. The real details are in the "interpreter path" when you go and edit an interpreter definition.

enter image description here

Click the cog wheel and select "Show All..."

enter image description here

Now you can see the real path.

I suspect the name just wasn't updated when you updated anaconda, but the Python version is actually the same as what you see in the command line. You can confirm this by running this from within pycharm:

import sys
print(sys.version)

If you see the old version, you can just add a new interpreter to PyCharm with the correct path to your Python 3.6 environment.

like image 152
Rob Bricheno Avatar answered Apr 02 '26 23:04

Rob Bricheno



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!