Starting a new Python project with Pipenv

16 November 2017

Pipenv is a new tool for managing dependencies and virtualenv environments for Python projects.

To start a new project:

  1. pipenv install - instantiates the virtualenv
  2. pipenv shell - activates the virtualenv
  3. pipenv install <dependency> - installs a dependency
  4. exit - exits out the shell as normally to exit the virtualenv

When users pull your project they should run

  1. pipenv shell
  2. pipenv install

If you are generating an env for a project that already has a traditional requirements.txt file pipenv will autmatically import the contents and create a Pipfile for you.



comments powered by Disqus