brew uninstall python error: Refusing to uninstall
brew uninstall python error: Refusing to uninstall
我决定使用 brew 安装 python3:brew install python
如何撤消此操作?我试过 brew uninstall python
并收到此错误:
Error: Refusing to uninstall /usr/local/Cellar/python/3.7.7
because it is required by libxml2 and libxmlsec1, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies python
我尝试取消链接 brew unlink python
- 成功了,但我仍然无法卸载。 --ignore-dependencies
是正确的方法吗?
要使用 brew
删除 python
,您需要先卸载指示的依赖项,即执行:
brew uninstall libxmlsec1 && brew uninstall libxml2
之后,您应该可以像最初尝试的那样使用 brew uninstall python
卸载 python
。
您可以使用错误消息 brew uninstall --ignore-dependencies python
中的建议,但是依赖项将保持安装但不会运行,这可能会导致进一步的问题。
我决定使用 brew 安装 python3:brew install python
如何撤消此操作?我试过 brew uninstall python
并收到此错误:
Error: Refusing to uninstall /usr/local/Cellar/python/3.7.7
because it is required by libxml2 and libxmlsec1, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies python
我尝试取消链接 brew unlink python
- 成功了,但我仍然无法卸载。 --ignore-dependencies
是正确的方法吗?
要使用 brew
删除 python
,您需要先卸载指示的依赖项,即执行:
brew uninstall libxmlsec1 && brew uninstall libxml2
之后,您应该可以像最初尝试的那样使用 brew uninstall python
卸载 python
。
您可以使用错误消息 brew uninstall --ignore-dependencies python
中的建议,但是依赖项将保持安装但不会运行,这可能会导致进一步的问题。