First, create a new and empty pipenv. If there is no Pipfile, the following command will create an empty one:
pipenv install
This will install a virtual env at a shared location on the machine, e. g. /Users/mo/.local/share/virtualenvs
.
Next, install relvant packages either using CLI installs or by editing the Pipfile and doing CLI updates.
pipenv install flask
This automatically updates the Pipfile so that the virtual env is in sync with the Pipfile and so that installs can be reproduced on other machines.
Insert flask = "*"
into the packages
section of
pipenv update
This will also sync the Pipfile and the virtual env.
Put your Pipfile into the working directory and run
pipenv install
Execute
pipenv shell
from the working dir to activate the environment.