mirror of https://github.com/CrimsonTome/tldr.git
24 lines
336 B
Markdown
24 lines
336 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}}`
|