今天在制作docker鏡像時遇到一個問題,問題描述如下:
Found existing installation: six 1.5.2 Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
但是我並沒有要安裝 six 這個包,經排查發現是因為happybase這個包依賴於six,所以會去安裝,但是因為系統也依賴了這個包,如果下載新的就必須卸載舊版本的,但是系統又依賴於舊版本,所以就沒有辦法卸載,最終導致報錯。
不過原因是找到了,但是博主卻沒有找到完美的解決方案,選擇了逃避,自己主動拋棄了happybase,然后結果皆大歡喜~
但是博主希望在你遇到這個問題時能夠完美解決~