【配置】
Mac
【执行操作】
在终端输入python3 --version
报错
【错误信息】
xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist
Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.
See man xcode-select
for more details.
【解决方案】
1、xcode-select --install
2、sudo xcode-select --switch /Library/Developer/CommandLineTools
3、输入密码
4、用xcode-select --version
可查看是否安装成功