1. 安裝Anaconda:
不要從官網,從國內的鏡像網站里下載,速度快,
鏈接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
根據自己的需要,下載 適合自己的系統的python3版本;
安裝;
2.修改文件,使環境變量永久生效:
2.1在terminal中執行以下命令:
open ~/.bash_profile
2.2打開文件后,增加最后面那一行,
export PATH=~/anaconda3/bin:$PATH
2.3然后再刷新文件
source ~/.bash_profile