Python Forum
Mac default python interpreter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Mac default python interpreter (/thread-38440.html)



Mac default python interpreter - Viewpoint8455 - Oct-12-2022

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?


RE: Mac default python interpreter - woooee - Oct-13-2022

symlink that directory to the other directory.


RE: Mac default python interpreter - perfringo - Oct-13-2022

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).