DanielSon
DanielSon

Reputation: 1545

Deleted Anaconda directory, now can't use Python3 in Terminal

I deleted the Anaconda directory as I haven't been using it, and now in terminal when I type python3 I get -bash: //anaconda/bin/python3: No such file or directory.

I have an installation of python3.6 that's showing when I type which python3. I'd really appreciate any help figuring out how to correct this so that I can access python3 in the terminal once more?

Upvotes: 0

Views: 89

Answers (1)

Martijn Pieters
Martijn Pieters

Reputation: 1122342

Bash caches name lookups; clear python3 from that cache:

hash -d python3

The next time you use python3 the PATH directories are searched again and the result is cached again.

Upvotes: 1

Related Questions