I'm using a Mac and this is a screenshot of the files in my /usr/local/bin
This is a screenshot of the files in /opt/homebrew/opt
I'm wondering why I have this amount of Pythons on my Mac. I feel like it's cluttered and confusing. I am also aware that the Macs have a built in Python so just to be clear, I'm not trying to get rid of that. What makes this confusing is that I don't know which Python is in use to update. Typing python3 --version
returns 3.9.5 when the latest is 3.9.7. Furthermore, I thought that I had updated my Python through the official website, but found out that I just updated the IDLE that downloads when you install Python from Python.org.
Although a seemingly trivial question, any feedback and knowledge would be appreciated!
CodePudding user response:
The command which python
at the terminal will tell you the path of the command python
. It might be a symlink so use ls -l
on that path to check.