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 u

今天在制作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,然后结果皆大欢喜~

但是博主希望在你遇到这个问题时能够完美解决~

posted @ 2018-05-08 18:44  穷开心y  阅读(7794)  评论(1编辑  收藏  举报