|
|
|
|
|
by my123
2044 days ago
|
|
Nope. Python2 is inbox, but Python3 redirects to the Xcode/developer tools copy. % sw_vers
ProductName: macOS
ProductVersion: 11.1
BuildVersion: 20C5048k
% ls /Library/Python/
2.7
% ls /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/
Headers Python3 Resources Versions
% ls /System/Library/Frameworks/Python.framework/
Python Resources Versions
|
|
EDIT: So I uninstalled Xcode. /usr/bin/python3 is there, but it is clearly a stub file of some sort. If you run it without Xcode or Xcode command line tools installed, you get a popup to install the command line tools. So python3 is not part of the system, but the stubs for it are. Thanks for the patience.
Even more interesting, if you have Xcode, but not the command line tools, the stub launches Python3.8 from the Xcode installation. Once you install the command line tools, it then switches to launching that version. Presumably this is all because of the read-only system volume.