【问题标题】:conda update anaconda Fails | ClobberErrorconda 更新 anaconda 失败 | ClobberError
【发布时间】:2018-12-15 12:06:15
【问题描述】:

我正在尝试更新所有 conda 包。

尝试运行这些命令

conda 更新 anaconda

conda 更新 --all

但在确认大多数包后都会出现此错误。

如何解决和更新所有的包?

ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-36.pyc'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/connection.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/request.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/response.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/retry.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/selectors.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/ssl_.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/timeout.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/url.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.


ClobberError: The package 'defaults::pip-10.0.1-py36_0' cannot be installed due to a
path collision for 'lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.py'.
This path already exists in the target prefix, and it won't be removed
by an uninstall action in this transaction. The path is one that conda
doesn't recognize. It may have been created by another package manager.

【问题讨论】:

  • 你有没有运行过pip 命令?
  • 我已经更新了所有 pip 包,更新后当我尝试更新时我得到同样的错误。
  • 是的,您不应该在 conda 中使用 pip 来更新 pip。您应该使用 conda 来更新所有内容。恐怕您可能必须卸载 pip 和可能的 urllib3 并使用 conda 重新安装它们。
  • 实际上我在收到 conda 错误后确实更新了pip。最初我在更新时没有收到错误,我的连接在更新后多次断开连接,我收到这些错误。收到这些错误后 - 我更新了点子。有没有办法使用 anaconda 清理损坏的包

标签: python ubuntu terminal anaconda


【解决方案1】:
conda clean --all
conda update --all

为我工作。 我需要多次运行更新命令来更新所有包。

【讨论】:

  • 如果错误提供了此信息而不是难以理解的ClobberError,那就太好了!
  • 清除 ClobberError 后,我必须清除 SafetyError:stackoverflow.com/questions/57151111/…
  • 究竟是什么导致了这个问题?
【解决方案2】:

如果你需要更新所有的包,命令是:。

conda update --all

【讨论】:

  • 您可以尝试删除 pip 并重新安装吗?
猜你喜欢
  • 2018-08-08
  • 2021-08-24
  • 1970-01-01
  • 2018-11-29
  • 2017-06-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多