以防万一还是没动系统自带的2.7

  1. 官网下3.7.4
    https://www.python.org/downloads/

  2. open ~/.bash_profile加几行代码

    export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.7/bin:
    alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
    alias python2='/usr/bin/python2.7'
  3. pip也记得在bash_profile里加一下

    alias pip='/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3.7'
    
  4. source ~/.bash_profile