tldr/pages/common/pip.md

23 lines
335 B
Markdown

# pip
> Python package manager
- Install a package
`pip install {{somepackage}}`
- Upgrade a package
`pip install -U {{somepackage}}`
- Uninstall a package
`pip uninstall {{somepackage}}`
- Save installed packages to file
`pip freeze > {{requirements.txt}}`
- Install packages from file
`pip install -r {{requirements.txt}}`