当前位置: 代码迷 >> 综合 >> 【python】使用pip出现/bin/python: bad interpreter: No such file or directory
  详细解决方案

【python】使用pip出现/bin/python: bad interpreter: No such file or directory

热度:75   发布时间:2023-12-22 03:13:48.0

使用pip出现/bin/python: bad interpreter: No such file or directory:

修改安装环境后使用pip出现了bad interpreter: No such file or directory:提示,

-bash: /home/**/pyscript/python3/bin/pip3: /home/**/pyscripts/python3/bin/python3.6: bad interpreter: No such file or directory

按照下面可以解决:

which pip
/home/pengwei/.conda/envs/py35/bin/pipwhich python
/home/pengwei/.conda/envs/py35/bin/pythonvim /home/pengwei/.conda/envs/py35/bin/pip

#!后面的改成python的路径就好了
在这里插入图片描述

  相关解决方案