安装完后终端输入 Python 或 conda list 之类的命令是没有反应的,还需要配置下系统环境变量。Windows环境下通过UI界面安装时可直接勾选☑️
1
2
3
4
5
# if you're using bashecho'export PATH="/usr/local/anaconda3/bin:$PATH"' >> ~/.bash_profile
# if you're using zshecho'export PATH="/usr/local/anaconda3/bin:$PATH"' >> ~/.zshrc
1
2
3
4
5
6
7
8
source ~/.bash_profile
conda init
# or... if you're using zshsource ~/.zshrc
conda init zsh
# !!! conda init is available in conda versions 4.6.12 and later.