目的:mac下看下安裝的python的版本
出現(xiàn)了如下的報(bào)錯(cuò):xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

報(bào)錯(cuò)截圖
解決:直接在term中執(zhí)行如下的命令:
xcode-select --install

命令執(zhí)行