【Mac】zsh: command not found: python
1、现象
2、原因
因为只有python3
3、处理
MacBook-Pro ~ % echo "alias python=/usr/bin/python3" >> ~/.zshrc MacBook-Pro ~ % source ~/.zshrc MacBook-Pro ~ % echo "alias python=/usr/bin/python3" >> ~/.bash_profile MacBook-Pro ~ % source ~/.bash_profile
参考链接:
https://zhuanlan.zhihu.com/p/129793857