我决定使用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是做这件事的正确方法吗?
发布于 2020-03-25 21:03:07
要使用brew删除python,您需要首先卸载指定的依赖项,即执行:
brew uninstall libxmlsec1 && brew uninstall libxml2在此之后,您应该能够像最初尝试的那样使用brew uninstall python卸载python。
您可以使用错误消息brew uninstall --ignore-dependencies python中的建议,但是依赖项将保持安装状态,但不会运行,这可能会导致进一步的问题。
https://stackoverflow.com/questions/60849358
复制相似问题