一、问题
mac下载安装完python3后,尝试在命令行运行python报错:
1 2 |
$ python zsh: command not found: python |
二、解决
1 2 |
echo "alias python=/usr/bin/python3" >> ~/.zshrc source ~/.zshrc |
三、参考
https://dev.to/smpnjn/how-to-fix-zsh-command-not-found-python-22j8