I have tried countless solutions at this point and nothing seems to work. I\'m trying to install mysql-python, but this happens with numpy and other packages requiring gcc a
This worked for me
xcode-select --install
As @wegry mentioned above--
brew install python
confirming with
$ which python
/usr/local/homebrew/bin/python
just made this entirely go away. Successfully installed numpy and mysql-python with pip!
Starting from Mojave xcode-select --install
is not enough, you should also install the package that can be found at /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
. Source: https://forums.developer.apple.com/thread/104296