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