pipenv
Cheat Sheet
Activate
pipenv shell
Install from requirements.txt
pipenv install -r ./requirements.txt
Get Python Interpreter (for VSCode)
find $(pipenv --venv) -name "python"
Ignore pipfile
pipenv install --ignore-pipfile
Set lockfile - before deployment
pipenv lock
Removing Old Environment
When we get the following error:
❯ pipenv shell
Usage: pipenv shell [OPTIONS] [SHELL_ARGS]...
ERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting.
We can remove the virtual environment to fix:
❯ rm -r $(pipenv --venv)
❯ pipenv shell
Run with pipenv
pipenv run *