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
|
|
|
|
2015-12-28 14:08:20 +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
|
|
|
|
|
2015-10-28 09:33:06 +01:00
|
|
|
`pip install -r {{requirements.txt}}`
|