I'm trying to create a venv for an already-created project on my computer. The project has a pipfile. When I try to create the venv using pipenv sync
or pipenv shell
it stucks forever. When I hit Ctrl+C it shows the following:
^CEnvironment creation aborted.
Error: An error occurred while removing /home/me/.local/share/virtualenvs/dbm-9yn1B79h!
[Errno 2] No such file or directory: '/home/me/.local/share/virtualenvs/dbm-9yn1B79h'
I'm on WSL. Several other projects with a very similar structure are working fine.
I tried removing and re-cloning the project several times. I checked the ownerships. I tried re-installing pipenv
.
Yet the venv fails to be created.
This problem is solved by adding a
.env
file to the project containingPYTHONPATH=.