(imsettings-check:1374): IMSettings-WARNING **: Could not connect: Connection refused
(imsettings-check:1374): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion `G_IS_DBUS_PROXY (proxy)’ failed
首先使用echo $PATH查看包含多少个anaconda3的路径(可能会存在多个)
找到系统中设置anaconda3的地方,将路径放在PATH最后。
检查/etc/profile, /etc/bashrc, ~/.bashrc这三个文件,
另外如果~/.bashrc中存在如下代码则需要全部注视掉,然后加上添加PATH的语句即可。如下:
#注释掉下面的内容,下面的内容执行会自动将anaconda3的路径添加至PATH最前面
# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$(CONDA_REPORT_ERRORS=false '/root/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
#if [ $? -eq 0 ]; then
# \eval "$__conda_setup"
#else
# if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
# . "/root/anaconda3/etc/profile.d/conda.sh"
# CONDA_CHANGEPS1=false conda activate base
# else
# \export PATH="$PATH:/root/anaconda3/bin"
# fi
#fi
#unset __conda_setup
# <<< conda init <<<
#添加卡面这一行
export PATH="$PATH:/root/anaconda3/bin"