How do I set an environment variable for pipenv during environment creation?
Answered
When I create the project using Pipenv, I get an environment folder with a hash value appended to it. I want a consistent virtual environment folder name like .venv/ .
Apparently this can be achieved if PIPENV_VENV_IN_PROJECT=1 variable set up before creating the environment. I have verified this by creating an environment on the terminal.
How do I set up this environment variable at the time of creation of the environment?
Please sign in to leave a comment.
Hi Abhishek, the only way to do it right now I can think of is to set PIPENV_VENV_IN_PROJECT globally (e.g. .bash_profile on macOS) and restart PyCharm. Please vote/comment in the relevant ticket: PY-30855.