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

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

热度:74   发布时间:2023-12-14 14:58:01.0

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

复制环境后使用pip出现了bad interpreter: No such file or directory:提示,
scp -P 22 -r /home/***/anaconda3/envs/py35 pengwei@192.168.******:/home/***/.conda/envs/

按照下面可以解决:
which pip
/home/pengwei/.conda/envs/py35/bin/pip

which python
/home/pengwei/.conda/envs/py35/bin/python

vim /home/pengwei/.conda/envs/py35/bin/pip
把#!后面的改成python的路径就好了

  相关解决方案