1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 15:38:28 +01:00
tldr/pages/common/pip.md

28 lines
427 B
Markdown
Raw Normal View History

2014-02-22 14:58:32 +01:00
# pip
> Python package manager
- Install a package
2014-02-22 22:43:29 +01:00
`pip install {{somepackage}}`
2014-02-22 14:58:32 +01:00
- Install a specific version of a package
`pip install {{somepackage}}=={{someversion}}`
2014-02-22 14:58:32 +01:00
- Upgrade a package
2014-02-22 22:43:29 +01:00
`pip install -U {{somepackage}}`
2014-02-22 14:58:32 +01: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}}`