I mistakenly executed the directory for pipenv install
in the child directory.
Then, even if you execute it again in the parent directory that you originally wanted to build the environment and do pipenv shell
,
It is a memo because I was in trouble because I moved to the wrong child directory without permission and it was executed in that environment.
A. Answer, it seems that a virtual environment will be created under ~/.local/share/virtualenvs /
by default.
After doing pipenv install
, I wondered where the virtual environment would be and tried to find out.
The selfish image seems to be different if I thought that the configuration file was placed under the execution of pipenv install
.
To the last, Pipfile
and Pipfile.lock
are the setting contents of environment construction, and it seems that the environment built using it is placed in another place.
So, based on the above
Go to ~/.local/share/virtualenvs /
Check the directory of the virtual environment that was built by mistake with ls
, and delete it entirely with therm -r <dir>
command.
Move to the directory you originally wanted to build the environment and try again pipenv install
https://qiita.com/tonluqclml/items/cd0d2a2cb0197cbaee42 https://qiita.com/propella/items/ea29d6a62fdf75f1b421
Recommended Posts