xcrun: error: invalid active dev
2024-01-13 本文已影响0人
熬夜的猫头鹰
目的:mac下看下安装的python的版本
出现了如下的报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
![](https://img.haomeiwen.com/i9387203/b6e0468d71ab2ddf.png)
解决:直接在term中执行如下的命令:
xcode-select --install
![](https://img.haomeiwen.com/i9387203/57dfe1152a3e8748.png)