pip安装virtualenv报错,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.
环境:Windows10 64位下
pip install ****** --ignore-installed ******
举例:
此处是安装virtualenv失败,导致失败的包是uninstall后面的‘distlib’
则安装时指令应为`
pip install virtualenv --ignore-installed distlib
#如此之后就安装成功了
#Successfully installed appdirs-1.4.3 distlib-0.3.0 filelock-3.0.12 importlib-metadata-1.6.0 importlib-resources-1.4.0 six-1.14.0 virtualenv-20.0.15 zipp-3.1.0