为什么打开终端时会调用conda?

问题描述 投票:1回答:1

我正在使用Kubuntu并安装了anaconda。当我打开Konsole(终端)时,在我获得命令行之前会有一点停顿。稍微暂停是由conda进程运行引起的(查看top命令的输出)。我安装了最新版本的anaconda,然后使用了3.6 python环境

conda install python=3.6

(我使用的是尚未使用3.7的tensorflow)

我以前使用旧版本的anaconda来获得版本3.6并没有看到这个问题。但是这次我尝试按照上面所示的推荐方式进行操作。

为什么conda在启动终端时运行,它在做什么,以及如何阻止它?

编辑:什么被添加到我的bashrc文件中

# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/alex/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [
$? -eq 0 ]; then
    \eval "$__conda_setup" else
if [ -f "/home/alex/anaconda3/etc/profile.d/conda.sh" ]; then
    . "/home/alex/anaconda3/etc/profile.d/conda.sh"
    CONDA_CHANGEPS1=false conda activate base
else
    \export PATH="/home/alex/anaconda3/bin:$PATH"
    fi 
fi 
unset __conda_setup
# <<< conda init <<<

我每次打开终端时都看不到任何东西。

python ubuntu anaconda kde
1个回答
3
投票

简单地运行:

conda config --set changeps1 False

您也可以编辑〜/ .bashrc

vi ~/.bashrc
© www.soinside.com 2019 - 2024. All rights reserved.