2017-12-15 03:20:25 +00:00
|
|
|
# pipenv
|
|
|
|
|
|
|
|
> Simple and unified Python development workflow.
|
2024-04-18 05:04:00 +01:00
|
|
|
> Manage packages and the virtual environment for a project.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <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:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pipenv install {{package}}`
|
2017-12-15 03:20:25 +00:00
|
|
|
|
2020-11-01 13:11:33 +00:00
|
|
|
- Install all the dependencies for a project:
|
|
|
|
|
|
|
|
`pipenv install`
|
|
|
|
|
|
|
|
- Install all the dependencies for a project (including dev packages):
|
2017-12-15 03:20:25 +00:00
|
|
|
|
|
|
|
`pipenv install --dev`
|
|
|
|
|
|
|
|
- Uninstall a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`pipenv uninstall {{package}}`
|
2017-12-15 03:20:25 +00:00
|
|
|
|
|
|
|
- Start a shell within the created virtual environment:
|
|
|
|
|
|
|
|
`pipenv shell`
|
2018-08-07 15:11:55 +01:00
|
|
|
|
2020-11-01 13:11:33 +00:00
|
|
|
- Generate a `requirements.txt` (list of dependencies) for a project:
|
2018-08-07 15:11:55 +01:00
|
|
|
|
|
|
|
`pipenv lock --requirements`
|