brew install libomp
Error: You have not agreed to the Xcode license. Please resolve this by running:
sudo xcodebuild -license accept
【应用程序】->【Xcode】,Agree用户协议
解决输入命令安装libomp
brew install libomp
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/': Failed to connect to github.com port 443 after 150007 ms: Operation timed out
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --origin=origin --template=` exited with 128.
输入命令:
arch -x86_64 /bin/bash -c “$(curl -fsSL
https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
提示安装git
最后安装libomp
brew install libomp