Python 3.12.4 interpreter not recognized by PyCharm 2024.1.4
I've tried multiple methods for setting the Python interpreter, but none are recognized.
I'm running PyCharm 2024.1.4. I have Python 3.12.4 installed via PyEnv as my default user Python. I am running MacOS Sonoma on an M1 Apple Silicon MacBook.
I tried pointing the IDE at an existing virtual environment. But it ignores it and does not add it as a local interpreter.
Then I tried letting PyCharm create the virtual environment for me using my 3.12.4 as the base interpreter. But it says “[Invalid]” in front of the path in the “Interpreter:” field.
I can definitely run that Python fine from the command line, and everything works that I expect.
$ python3.12
Python 3.12.4 (main, Jul 16 2024, 16:35:01) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.executable)
/Users/steve/.pyenv/versions/3.12.4/bin/python3.12
Is it worth trying a pre-release version? Is there something else I can try?
Thanks in advance!
Please sign in to leave a comment.
please upload the zipped IDE UI logs from Help | Collect Logs and Diagnostic Data at https://uploads.jetbrains.com/ and share it's uploadID
Unfortunately, or fortunately, it started working. To be able to give you as clean a log as possible, I deleted all known interpreters for that project, and then re-added the one I was trying to add before. This time it worked. Please let me know if you still want the data.
I have just the same issue. One of the special things is that the Pycharm response “speaks” about python 3.13 … can I send you logs? What logs do you want?
You can upload the logs at https://uploads.jetbrains.com/ and share it's uploadID or create a new report at YouTrack