I am using pip installed via minconda. I installed it
under ~/miniconda3
and then move the installation directory to
~/tools/miniconda3
. After that, I changed the PATH
accordingly. However,
when I use pip, I am seeing the following error:
/home/jdhao/miniconda3/bin/python: bad interpreter: No such file or directory
this is because the executable pip
under ~/tools/miniconda3/bin/
is
actually a Python source file. Its first line is a shebang:
#!/home/jdhao/miniconda3/bin/python
and it still points to the old Python that is no longer there. Hence, the error message.
A simple solution is to remove miniconda3 directory and install it again.
Ref: