pip 无法卸载对应的包或库。

pip uninstall docker
Found existing installation: docker 4.4.4
Can’t uninstall ‘docker’. No files were found to uninstall.


手动删除( /usr/lib/python2.7/site-packages/ 目录下对应的包):

rm -rf /usr/lib/python2.7/site-packages/docker
rm -rf /usr/lib/python2.7/site-packages/docker-4.4.4.dist-info/

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐