我決定使用brew安裝python3:brew install python如何撤消此操作?我嘗試并得到這個錯誤:brew uninstall pythonError: Refusing to uninstall /usr/local/Cellar/python/3.7.7because 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
1 回答

BIG陽
TA貢獻1859條經驗 獲得超6個贊
要使用 刪除 ,您需要先卸載指示的依賴項,即執行:python
brew
brew uninstall libxmlsec1 && brew uninstall libxml2
之后,您應該能夠像最初嘗試的那樣使用卸載。python
brew uninstall python
您可以使用錯誤消息 中的建議,但是依賴項將保持安裝狀態,但無法正常工作,這可能會導致進一步的問題。brew uninstall --ignore-dependencies python
添加回答
舉報
0/150
提交
取消