我已经安装了 Ubuntu 20.04.3 LTS 并安装了 Anaconda3,但由于出现一些问题,我不得不卸载 Anaconda3。我以 root 身份使用此命令从/home/user目录中删除了它:
# rm -f anaconda3
Run Code Online (Sandbox Code Playgroud)
之后我遇到了以下问题:
$ sudo -s
# ls
Command 'ls' is available in the following places
* /bin/ls
* /usr/bin/ls
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
ls: command not found
Run Code Online (Sandbox Code Playgroud)
这是我的最后几行.bashrc:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/thilipkumar/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ …Run Code Online (Sandbox Code Playgroud) permissions command-line bash directory environment-variables