ubuntu安装anacond时,有个设置选择no,则在激活环境之类的命令时不能用conda,这时候可以手动配置环境变量。
# added by Anaconda3 5.3.0 installer # >>> conda init >>> # !! Contents within
this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=
false'/home/czx/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq
0 ]; then \eval "$__conda_setup" else if [ -f
"/home/czx/anaconda3/etc/profile.d/conda.sh" ]; then .
"/home/czx/anaconda3/etc/profile.d/conda.sh" CONDA_CHANGEPS1=false conda
activate baseelse \export PATH="/home/czx/anaconda3/bin:$PATH" fi fi unset
__conda_setup# <<< conda init <<<
里面的地址自行修改