An error message Invalid Python SDK occurred when importing the Python environment
Hello everyone, I have encountered some problems while configuring the python environment and need help, and I will describe in detail how I encountered this problem next.
First of all, the environment I am running in Ubuntu20.04, I use the Pycharm-community-2024.3.4, I need to import a local python package into the runtime environment, I did the following Operate:

This path "/usr/local/python3.9.2/bin " is the local python package I installed. After the above operation, the following error appeared:

In addition, other prompts are generated:

Please sign in to leave a comment.
Hello,
Please try to run
/usr/local/python3.9.2/bin/python3 --versionin the system terminal and share the output if the run is successful.Otherwise, if it produces any errors, most likely there is a problem with Python installation. In this case try to reinstall Python, we highly recommend using official distributions from python.org.
I'm having the same error message as in the second screenshot.
The SDK is added but the Classpath remains empty.
Python 3.12.10 from Python.org freshly installed into C:\Tools\Python\3_12.
python3 --version gets correct value.
Using IntelliJ 2025.1.3 Ultimate on Windows 11.
Python plugin installed and enabled.
Hi Antonio Quarta, this issue requires thorough investigation, please create an issue on YouTrack (https://youtrack.jetbrains.com/issues/PY) and attach all relevant information (including IDE logs from Help | Collect Logs and Diagnostic Data) for quicker resolution.