I am using a remote HPC which works on a module based system, I have ran the following to load basic modules –
module load Stages/2023 GCC/11.3.0 OpenMPI/4.1.4 Python/3.10.4 CUDA/11.7 PyTorch/1.12.0-CUDA-11.7 jax/0.3.23-CUDA-11.7
Once this is done when I run which python
(or which pip
), it correctly picks up –
/…/stages/2023/software/Python/3.10.4-GCCcore-11.3.0/bin/python
This is the correct path.
It is also added into $LD_LIBRARY_PATH and $PYTHONPATH is also updated properly to include this address. In fact I can safely run python3
and code.
However, this is not detected by VSCode at all and I get the error as described by the title. It only limits to /usr/bin somehow; when I try to manually enter this, that is when I get the error. Note that those files ARE present in
/…/stages/2023/software/Python/3.10.4-GCCcore-11.3.0/lib/
I have checked several other posts, none of them seem to work. There is also no stray process running in my name.
Karan Bania is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.