eha*_*nom 4 python macos homebrew
我决定使用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
Run Code Online (Sandbox Code Playgroud)
我尝试取消链接它brew unlink python- 它有效,但仍然无法卸载。--ignore-dependencies这样做的正确方法是吗?
要删除pythonusing brew,您需要首先卸载指示的依赖项,即执行:
brew uninstall libxmlsec1 && brew uninstall libxml2
Run Code Online (Sandbox Code Playgroud)
之后,您应该能够像最初尝试的那样python卸载。brew uninstall python
您可以使用错误消息中的建议,brew uninstall --ignore-dependencies python但是依赖项将保持安装状态,但无法运行,这可能会导致进一步的问题。
| 归档时间: |
|
| 查看次数: |
5168 次 |
| 最近记录: |