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 …