这篇文章上次修改于 784 天前,可能其部分内容已经发生变化,如有疑问可询问作者。 > 使用国内景象安装,中间会让你选择镜像源 ##### 安装brew ```bash /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ``` ##### 安装python ``` bash brew install pyton ``` ##### 修改.bash_profile ```bash vi ~/.bash_profile PATH="/usr/local/bin/python3/bin:${PATH}" export PATH ``` ##### 修改.bashrc ```bash sudo vi ~/.bashrc alias python2='/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7' alias python3='/usr/local/bin/python3' alias python=python3 ``` ##### 使生效 ```bash source ~/.bash_profile source ~/.bashrc ``` ##### 安装pip ```bash curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py ```
没有评论