Home > OS >  Why are there so many instances of Python on my system? Which one of these is my system actually usi
Why are there so many instances of Python on my system? Which one of these is my system actually usi

Time:09-28

I'm using a Mac and this is a screenshot of the files in my /usr/local/binWorking directory is /usr/local/bin

This is a screenshot of the files in /opt/homebrew/optWorking directory here is /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.

  • Related