一、报错
安装virtualenv时报“ERROR: Cannot uninstall ‘distlib’.”错误
pip install virtualenv -i https://pypi.douban.com/simple/
错误提示如下:
ERROR: Cannot uninstall 'distlib'. 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.
二、定位
找到distlib的安装位置
pip show distlib
三、删除
删除distllib的egg-info文件