mac安装anaconda

659 阅读1分钟

mac安装anaconda后指令无效------需要受手动添加path

1)检查环境变量:

sudo vi ~/.bash_profile

2)如果环境变量中没有conda那么要手动添加

export PATH=~/anaconda3/bin:$PATH

export PATH="/Users/anaconda3/bin:$PATH"

3)刷新环境变量:

source ~/.bash_profile

验证

conda -V

python --version