以前都是用sudo ln ‑s去修改系统的默认python版本,确实很多时候不需要这么彻底,今天看到另一种思路,修改~/.bash_profile:
alias python="/usr/local/bin/python3.6"
然后
source ~/.bash_profile
能应付绝大多数的需求。
以前都是用sudo ln ‑s去修改系统的默认python版本,确实很多时候不需要这么彻底,今天看到另一种思路,修改~/.bash_profile:
alias python="/usr/local/bin/python3.6"
然后
source ~/.bash_profile
能应付绝大多数的需求。