3 ms·
My Mac with Sonoma aka macOS 14 has Python in /usr/bin/python3, so I assume it's been installed with the system. It might have been installed with Xcode, though
by Cockbrand 3y ago
My Mac with Sonoma aka macOS 14 has Python in /usr/bin/python3, so I assume it's been installed with the system. It might have been installed with Xcode, though.
- jasomill 3y agoThat's not Python; it's just a hard link to a generic shim for every program in /usr/bin that ships with the developer tools, $ find /usr/bin -inum $(stat -f %i /usr/bin/python3) | wc -l 76 $ cp /usr/bin/python3 /tmp/IEFBR14 $ /tmp/IEFBR14 IEFBR14: error: sh -c '⋯/Xcode.app/⋯/xcodebuild -sdk ⋯/Xcode.app/⋯/MacOSX.sdk -find IEFBR14 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcode-select: Failed to locate 'IEFBR14', requesting installation of command line developer tools. $ and then if you're in a GUI session it pops up a dialog box[1] offering to download and install the developer tools (even if they're already installed; the example above is from a Sonoma box with both Xcode 15.1 and the latest command line developer tools installed). [1] https://jasomill.at/IEFBR14.png https://jasomill.at/IEFBR14.png
- Cockbrand 3y agoI do have Xcode installed, and for me it's just Python $ /usr/bin/python3 [ 12:18:42 ] Python 3.9.6 (default, Nov 10 2023, 13:38:27) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> So I guess it depends on whether Xcode and developer tools are installed or not. Too bad it's not installed by default any more anyway.