tldr/pages/common/pip.md

24 lines
336 B
Markdown
Raw Normal View History

2014-02-22 13:58:32 +00:00
# pip
> Python package manager
- Install a package
2014-02-22 21:43:29 +00:00
`pip install {{somepackage}}`
2014-02-22 13:58:32 +00:00
- Upgrade a package
2014-02-22 21:43:29 +00:00
`pip install -U {{somepackage}}`
2014-02-22 13:58:32 +00:00
- Uninstall a package
`pip uninstall {{somepackage}}`
- Save installed packages to file
`pip freeze > {{requirements.txt}}`
- Install packages from file
`pip install -r {{requirements.txt}}`