HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pipenv — Simple and unified Python development workflow. Manage packages and the virtual environment for a pr

Submitted by: @import:tldr-pages··
0
Viewed 0 times
simpleunifiedcommandandpythondevelopmentclipipenv

Problem

How to use the pipenv command: Simple and unified Python development workflow. Manage packages and the virtual environment for a project. More information: <https://pypi.org/project/pipenv>.

Solution

pipenv — Simple and unified Python development workflow. Manage packages and the virtual environment for a project. More information: <https://pypi.org/project/pipenv>.

Create a new project:
pipenv


Create a new project using Python 3:
pipenv --three


Install a package:
pipenv install {{package}}


Install all the dependencies for a project:
pipenv install


Install all the dependencies for a project (including dev packages):
pipenv install --dev


Uninstall a package:
pipenv uninstall {{package}}


Start a shell within the created virtual environment:
pipenv shell


Generate a requirements.txt (list of dependencies) for a project:
pipenv lock --requirements

Code Snippets

Create a new project

pipenv

Create a new project using Python 3

pipenv --three

Install a package

pipenv install {{package}}

Install all the dependencies for a project

pipenv install

Install all the dependencies for a project (including dev packages)

pipenv install --dev

Context

tldr-pages: common/pipenv

Revisions (0)

No revisions yet.