this error comes when I type cd ./
python: error: Failed to locate 'python'.
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.
If you don't want to install Xcode app, you should try this.
This worked for me
Original answer in apple developers forum
sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
This command creates the required python binary for xcode-select.
if it's related to any tools that require xcode-install
you want to use /Applications/Xcode.app/Contents/Developer/usr/bin/python3
which points to some ../Library/Frameworks/Python3.framework/Versions
like:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/usr/bin/python
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With