1
Bash记住了被移动/删除的可执行文件的错误路径
当我做 which pip3 我懂了 /usr/local/bin/pip3 但是当我尝试执行时pip3,出现如下错误: bash: /usr/bin/pip3: No such file or directory 这是因为我最近删除了该文件。现在which命令指向的另一个版本pip3是位于/usr/local/bin但外壳还记得在错误的道路。我该如何忘记那条路? 该which手册说 which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given as commands in a strictly POSIX-conformant shell. It does this by searching the …