I created a test virtual environment using pipenv install to practice with my new installation of pipenv. I went to remove the virtual environment using pipenv --rm and it gave the following output in the cmd prompt:
D:\Desktop\testproject>pipenv --rm
Removing virtualenv (C:\Users\Harry\.virtualenvs\testproject-Ox2snZ7k)…
[=== ] Running...Error: An error occurred while removing C:\Users\Harry\.virtualenvs\testproject-Ox2snZ7k!
[WinError 145] The directory is not empty: 'C:\\Users\\Harry\\.virtualenvs\\testproject-Ox2snZ7k'
It makes me wonder: what is the point of --rm if it means I have to manually remove the environment directory (e.g. testproject-Ox2snZ7k) myself?
procmonif it encounters any errors while deleting the dir's contents. Something in it is probably open by some other process. - ivan_pozdeevpipenvand is purely Windows' workings. - ivan_pozdeev