tldr/pages/common/pipenv.md

34 lines
616 B
Markdown
Raw Normal View History

2017-12-15 03:20:25 +00:00
# pipenv
> Simple and unified Python development workflow.
> Manages packages and the virtual environment for a project.
2019-01-30 11:51:51 +00:00
> Homepage: <https://pypi.org/project/pipenv>.
2017-12-15 03:20:25 +00:00
- Create a new project:
`pipenv`
- Create a new project using Python 3:
`pipenv --three`
- Install a package:
`pipenv install {{package_name}}`
- Install all the dependencies for a project (including dev):
`pipenv install --dev`
- Uninstall a package:
`pipenv uninstall {{package_name}}`
- Start a shell within the created virtual environment:
`pipenv shell`
- Generate a requirements.txt for a project:
`pipenv lock --requirements`