解决:
1.找到目录/Library/Frameworks/Python.framework/Versions/3.9/bin.拖入终端 cd
2.vim ~/.bash_profile
按i插入
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH
esc退出 source ~/.bash_profile保存
3.vim ~/.zshrc
写入source ~/.bash_profile
保存退出 然后重启终端就可以了
flask --version