【问题标题】:Downgrade conda on mac not permitted不允许在 Mac 上降级 conda
【发布时间】:2019-06-18 14:15:08
【问题描述】:

我正在使用 mac,试图将 python(从 anaconda)从 3.7 降级到 3.6,但出现错误。

在终端上,我写道:conda install python=3.6.8.

错误:

Executing transaction: failed
ERROR conda.core.link:_execute(568): An error occurred while uninstalling package 'defaults::python.app-2-py37_9'.
PermissionError(1, 'Operation not permitted')
Attempting to roll back.

Rolling back transaction: done

[Errno 1] Operation not permitted: '/Users/../anaconda3/python.app/Contents/PkgInfo' -> '/Users/../anaconda3/python.app/Contents/PkgInfo.c~'

我试过了:

sudo env "PATH=$PATH" conda update conda


sudo conda install python=3.6


sudo -H conda update conda


conda update conda

仍然,得到同样的错误。 我该怎么办?

【问题讨论】:

    标签: python macos anaconda


    【解决方案1】:

    首先,我可能会执行 conda search python 终端中的命令来检查 conda 是否真的看到所有可用的 Python 版本(它应该是)。 之后你应该尝试使用sudo conda install python=3.6.0 而不是sudo conda install python=3.6。它可能会有所帮助
    或者您可以简单地创建一个新环境并在那里安装一个单独的 Python 版本You can find the official description here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-27
      • 1970-01-01
      • 2017-09-23
      • 1970-01-01
      相关资源
      最近更新 更多