xcode-select -p
If the xcode command line tools are installed you should get something like that:
/Applications/Xcode.app/Contents/Developer
If you get anything else, then run the following command:
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl -fsSL 'https://raw.githubusercontent.com/mhernandezve/mac_basic_setup_python/master/Brewfile' | brew bundle --file=-