安装conda错误

在服务器上安装conda的时候,一开始使用了pip安装
pip install conda
在安装好conda之后想要使用conda命令,出现:

ERROR: The install method you used for conda—probably either pip install conda or easy_install conda—is not compatible with using conda as an application. If your intention is to install conda as a standalone application, currently supported install methods include the Anaconda installer and the miniconda installer. You can download the miniconda installer from https://conda.io/miniconda.html.

然后到官网下载.sh文件并bash安装,仍然没有解决该问题;接着尝试pip uninstall conda,出现

最后在查阅了网上之后,使用 which conda找到conda的地址,并删除rm ×××

最后重新bash安装即可。