赞
踩
问题:今天安装canvas的时候,报错提示python: command not found
/bin/bash下不好使
ln -s /usr/bin/python3 /usr/local/bin/python
zsh下不好使:
解决办法:
- # bash
-
- 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。