McLeodx McLeodx - 1 year ago 65
Python Question

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

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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download