One (or more) packages are writing LICENSE and COPYRIGHT files to the virtualenv root
If the script doesn't clean up these files, it's left in a funky state where rmvirtualenv completes without removing the parent folder. This causes mkvirtualenv to think the env exists. Ultimately, we must remove the folder by hand to fix the issue.
rmvirtualenv
is leaving straggler files in the root folder:pip
now creates a pip-selfcheck.json file in the virtualenv rootLICENSE
andCOPYRIGHT
files to the virtualenv rootIf the script doesn't clean up these files, it's left in a funky state where
rmvirtualenv
completes without removing the parent folder. This causesmkvirtualenv
to think the env exists. Ultimately, we must remove the folder by hand to fix the issue.