Ad

Where Is Python3 Installed In Macos?

- 1 answer

So, I've recently installed Anaconda with python 3.7.3. Even if it is a really neat way to access scientific libraries I still want access to the preinstalled python of macos Mojave. Whenever i type in terminal "python3" or "python3.7" the anaconda version pops up. the only way to access one of the preinstalled versions is to type "python2.7" which accesses python 2 not python 3.

After some navigation inside the filesystem I found that python 2 is in "/usr/bin". Does anybody know where python 3 is located so that I can add to my .bash_profile something like "alias python3="[path]" ?

Ad

Answer

I am using Python3 and I check by

  1. Open Terminal
  2. Type $ which python3
  3. Result: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
Ad
source: stackoverflow.com
Ad