When upgrading the current virtualenv version, an error is reported: ERROR: Cannot uninstall'virtualenv'. 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.
The command executed during the upgrade Yes: pip install --upgrade virtualenv
Change to execute the following command and no error will be reported: pip install --upgrade virtualenv --ignore-installed distlib