On my Pop OS system the base Python interpreter is 3.10, and I installed Python 3.12, it works perfectly fine:
With 3.12 I can create virtual environment, run Python files, so it works perfectly:
But when I try to set it in PyCharm, it just doesn't see Python 3.12:
So it sees and recognizes python, python3, python3.10 binaries, but not python3.12, despite python3.12 being there:
Why is that? What should I do?




So the problem was that I orignally downloaded Pycharm from snap store, and this version of Pycharm appears to be a bit outdatted and buggy.
I downloaded the newest version from the official website https://www.jetbrains.com/pycharm/download/?section=linux and it works flawlessly.