When you try to run Python3 command or most developer commands on the macOS Sonoma Terminal app you will be prompted to install the xcode-select tools.
Code2care@Mac % python3 --version
xcode-select: note: No developer tools were found, requesting install.
If developer tools are located at a non-default location on disk,
use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to
use for command line developer tools, and cancel the installation dialog.
See `man xcode-select` for more details.

The "python3" command requires the command line developer tools.
Would you like to install the tools
now?
Choose Install to download and install the command line
developer tools now.
Once you click on install you will see a finding software window, which will soon turn into an error as below,

Fix/Solutions
Solution 1:
- Step 1:
- Step 2:
Locate Command Line Tools for Xcode 15 and download it (the size of this Command Line Tool installer dmg is around 650 MB).
- Step 3:
Install the dmg once downloaded.
- Step 4:
Now when you try to run Python3 command in Terminal it should work!
Solution 2:
Locate Command Line Tools for Xcode 15 and download it (the size of this Command Line Tool installer dmg is around 650 MB).
Install the dmg once downloaded.
Now when you try to run Python3 command in Terminal it should work!
You can install the xcode-select tool using the homebrew package manager.
Solution 3:
To install Command Line Tools directly, run the below command on the Terminal and follow the instructions that will come up as a dialog.
xcode-select --install
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!