python 无法卸载或升级旧的库
# python 出现无法卸载或升级旧的库时
无法卸载旧得包
Cannot uninstall ‘httplib2’. 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.
在安装 Tensor2Tensor 时,某依赖包的版本过旧,不支持新的依赖包,导致安装失败,遂卸载掉这个旧版本的 httplib2,但是提示卸载失败。所以直接强制升级!
sudo pip install --ignore-installed httplib2
或
sudo pip install3 --ignore-installed httplib2