I have Pro 3.4 that uses Python 3.11
When I use the same python in pychrm it think it is 3.9
In the attached screen shot you can see a few lines in Pro Python window that show the version and a screen from pycharm that show different version taken from the same directory.
In some other machines when I have Pro 3.3 pycharm see version 3.1 that is not supported and does not include all the features of 3.11
Anybody see this?
That's really odd, I use VSCode and never have any issues. Have you tried checking the version using different IDEs?
The interpreter was added to PyCharm when you had an older ArcGIS Pro/python installed. When you added it, PyCharm chose a default "name", which was the python version in your case and the name didn't get changed when the python version was updated. The "name" is just a PyCharm alias and that it refers to the wrong version doesn't actually matter (apart from being a bit confusing).
You can rename the interpreter by going to File -> Setting -> Project -> Python Interpreter (or clicking the Interpreter item in the bottom right Pycharm bar)
Select the Show all in the interpreter pick list:
Select the incorrectly named interpreter and click the "Rename" button and change the name to whatever you want, perhaps arcgispro-py3 or similar:
Hi
Have a look at this blog post which will show you how to set up your Python environment for ArcGIS Pro:
https://epjmorris.wordpress.com/2020/09/16/configuring-pycharm-for-use-with-arcgis-pro-and-arcmap/
Hope you find it useful!
thanks ed