Python Forum

Full Version: Mac default python interpreter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I have a problem with my default python (interpreter) on my Mac.
When I type “which python” in the terminal, it shows: “/opt/anaconda3/bin/python”.
How can I change this so that again “/usr/local/bin/python3” is the default python interpreter?
symlink that directory to the other directory.
What will happen if you write which python3?

How to fix it depends on many factors - how did you install Python, it's different versions and distributions. What does your .bashrc/.bash_profile (or their .zhs counterparts) contain (aliases, paths etc).