已删除 miniconda 文件夹,python 不会 运行

Deleted miniconda folder, python won't run

我在以下目录安装了/miniconda:

/home/arturo/Documents/project1/pwd

但后来我通过输入删除了它:

rm -r pwd/

现在我不能再运行 python(从任何目录)。不太确定发生了什么。我收到此错误:

bash: /home/arturo/Documents/project1/pwd/bin/python: No such file or directory

您至少有两个选择:

  1. 重新安装 miniconda,安装到与之前相同的位置。
  2. 使用 hash -r 清除可执行缓存以消除陈旧的条目,它将 python 命令与不存在的 /home/arturo/Documents/project1/pwd/bin/python 联系起来 cf。 What is the purpose of the hash command?