RemoveError: 'setuptools' 是 conda 的依赖项,无法从 conda 的运行环境中删除

Tol*_*oly 22 python windows-installer setuptools anaconda conda

我有赢 10

运行时:

conda update conda
Run Code Online (Sandbox Code Playgroud)

我遇到了这个错误:

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
Run Code Online (Sandbox Code Playgroud)

似乎没什么帮助

我尝试卸载 anaconda 并收到一条成功消息,但似乎仍有一些旧版本的痕迹仍然存在

如何彻底清除 Anaconda 安装的所有痕迹?

Tol*_*oly 47

While I still did not find how to cleanly uninstall anaconda, I was able to resolve the error by using the following:

conda update --force conda
conda update anaconda
Run Code Online (Sandbox Code Playgroud)

and again

conda update conda
Run Code Online (Sandbox Code Playgroud)

As a result, I got a stable environment with no dependency conflicts. Seems like something within latest conda is too restrictive and update must be forced.

  • 为什么 conda 每 2 个月就会中断一次? (12认同)
  • [Anaconda 文档](https://www.anaconda.com/blog/keeping-anaconda-date) 表示不建议更新 anaconda 包,因此请尝试“conda update -all”。 (3认同)
  • 现代方法是使用“--force-reinstall” (2认同)

Val*_*Val 5

我使用的是 Linux Ubuntu 16.04,它对我有用:

conda uninstall setuptools
# This is a must to make it work
conda install setuptools
conda update --force conda
Run Code Online (Sandbox Code Playgroud)


小智 5

我使用的是 Mac 而不是 Windows,但我收到了相同的消息。我能够通过运行更新conda update setuptools。它在此过程中使 conda 保持最新状态。