赞
踩
Mac zsh: command not found: python
因为只有python3
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
参考链接:
【Mac】zsh: command not found: python - 代码诠释的世界 - 博客园
https://www.cnblogs.com/fireblackman/p/16424744.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。