Skip to main content
  1. Posts/

pip bad interpreter issue

··98 words·1 min·

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:

Related

Anaconda Python 和 pip 国内源/镜像
··82 words·1 min
Virtual Environment Management with Conda
··309 words·2 mins
What Is The Difference between pip, pip3 and pip3.6 Shipped with Anaconda3?
··222 words·2 mins