虛擬環境bin/python: bad interpreter: No such file or directory

chamie發表於2024-04-03

(pytorch3drecgan) ubuntu@ubuntu:~$ pip
-bash: /home/ubuntu/anaconda3/envs/pytorch3drecgan/bin/pip: /home/liucaixia/anaconda3/envs/pytorch3drecgan/bin/python: bad interpreter: No such file or directory

解決辦法:

$which python

$/home/ubuntu/anaconda3/envs/pytorch3drecgan/bin/python

$source activate /home/ubuntu/anaconda3/envs/pytorch3drecgan

$pip

相關文章