Learn Before
Concept
Virtual Environment Constraints
By default, pipenv maps projects to virtual environments using the projects root folder, and a hash of the projects entire directory. Because of this, if your project folder is moved, or the path is changed at all, pipenv will no longer be able to correctly use the project's virtual environment.
One way to avoid this would be to set the environmental variable PIPENV_VENV_IN_PROJECT=1 in your shell configuration in order to have virtual environments be created in the project's directory. This allows your project to be flexible in its location on your system.
0
1
Updated 2021-05-25
Tags
Python Programming Language
Data Science