错误:您使用的conda安装方法——可能是`pip install conda`或`easy_install conda`——不兼容。

5

我需要conda环境来运行一些Python代码库。之前我的电脑是Windows系统,我安装了Anaconda shell以及所有其他必需的东西,轻松愉快!

但是,现在我已经将代码移到了服务器上(因为需要更多内存)。我使用Putty客户端访问该服务器,并且所有操作都必须使用Putty shell执行。我应该如何在此处运行conda?我使用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.

搜索后,我发现使用pip安装的conda已经损坏。因此,我按照以下链接中的说明安装了迷你conda:

https://mediawiki.middlebury.edu/CS/Useful_Tools

我成功安装了Miniconda,但是如果我尝试运行它,仍然会给我上面的同样错误。有人可以帮忙吗?我需要卸载使用pip安装的conda吗?

3个回答

3

更改生效需要重新打开终端!


这应该是一个注释。 - user13146129
5
我声望不够,无法发表评论。 - ablam
您现在拥有评论特权。看起来您非常值得拥有这个特权,因为您的回答被认为是有帮助的(至少对我来说是这样)。但请理解,没有这个特权并不意味着回答帖子可以被滥用为评论。以防万一您向他人解释StackOverflow...;-) - Yunnosch

0
你卸载了conda的第一个安装包吗?看起来你没有,这就是为什么每次运行conda时都会出现相同的错误,因为它引用了第一个安装包。如果你已经卸载它并且仍然出现错误,请确保将miniconda添加到PATH中。

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接