mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
43 lines
805 B
Plaintext
43 lines
805 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|