Relative Content

Tag Archive for pythonenvironmentinterpreterhpc

Invalid python interpreter selected in HPC

I interact with the HPC of my workplace via VScode, and my company’s HPC system uses Linux, so my terminal is in Bash. For my projects, I created a custom environment (call it environment RE). The python version associated with RE is 3.11.9. Somehow, after creating it I received the error “an invalid Python interpreter is selected”. I went to terminal with “python —version” and it shows 3.11.9. However, when I went to the environment interpreter via Ctrl + Shift + P, it shows that the Python version associated with RE (the path to RE is correct) is 3.1.x. I uninstalled RE, cleared cache (python debugger: clear cache and reload window), re-installed it, and manually put the path of RE into the environment interpreter, and this time it shows the right Python version of 3.11.9.