Pipenv Tutorial - the official package control for python

Why use Pipenv:

How to use it

Pipenv’s Dependency Resolution Approach

The Pipfile

The Pipfile.lock

Pipenv Extra Features

What if you already have a requirements.txt file

Work flow for any project

  1. Get pipenv: pip install pipenv
  2. Create a virtual environment: pipenv shell
  3. Setup local development: pipenv install --dev
  4. Work on the code, use version control such as git
  5. After done development, lock the environment: pipenv lock
  6. When finished working, quit environment: ctrl + D
  7. Setup production: pipenv install --ignore-pipfile
  8. Repeate steps 3-6 for development

Reference