我安装完 conda 后,还是无法调用 conda。我按照下面的步骤添加路径。
sudo gedit ~/.bashrc
export PATH= "/home/howard/anaconda3/bin:$PATH"
sudo gedit /etc/profile
export PATH="/home/howard/anaconda3/bin:$PATH"
source /etc/profile
然而,情况更糟糕。我无法调用 conda 和 nvcc。“未找到” 另外,当我重新启动终端时,它会说
bash:
export: /home/username/anaconda3/bin:/usr/local/cuda/bin:/usr/local/cuda-10.0/bin:/usr/local/cuda-11.1/bin:/usr/local/cuda-11.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin':
not a valid identifier
当我想返回~/.bashrc
删除导出路径时,使用sudo gedit ~/.bashrc
它告诉 bash:sudo: No such file or directory
有人可以帮忙吗?