Pipenv Cheat Sheet by Brad Traversy

Install pipenv

pip3 install pipenv


pipenv shell

Check version of Python

python --version

Check path

>>> import sys
>>> sys.executable

Install a package

pipenv install camelcase

Check local packages

pipenv lock -r

Uninstall a package

pipenv uninstall camelcase

Install a dev package

pipenv install nose --dev

Install from requirements.txt

pipenv install -r ./requirements.txt

Check security vulnerabilities

pipenv check

Check dependency graph

pipenv graph

Ignore pipfile

pipenv install --ignore-pipfile

Set lockfile - before deployment

pipenv lock

Exiting the virtualenv


Run with pipenv

pipenv run *