从ubuntu终端命令提示符中删除anaconda环境前缀

Shy*_*dka 1 python ubuntu anaconda

我安装了ancaconda并安装了两个版本的pythons作为

conda create -n python2 python=2.7 anaconda
conda create -n python3 python=3.6 anaconda
Run Code Online (Sandbox Code Playgroud)

现在,当我这样做时source activate python3,环境python3将在我的终端中添加前缀。在我的终端之前:source activate python3,现在添加了anaconda前缀环境“ python3” (python3) shyamkkhadka@algo22:~$。如何在ubuntu中从终端提示符中删除前缀(python3)?

Shy*_*dka 6

Well, I found the answer myself. Anaconda has nice feature for this also:

conda config --set changeps1 false
Run Code Online (Sandbox Code Playgroud)

It hides the prefix in your command prompt.