不允许在mac上降级conda

2024-09-29 21:55:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在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

不过,还是得到了同样的错误。 我能做什么?你知道吗


Tags: installapp错误contentsbacksudonotupdate
1条回答
网友
1楼 · 发布于 2024-09-29 21:55:25

首先,我可能会执行 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

相关问题 更多 >

    热门问题