2014-02-22 13:58:32 +00:00
|
|
|
# pip
|
|
|
|
|
|
|
|
> Python package manager
|
|
|
|
|
|
|
|
- Install a package
|
|
|
|
|
2015-12-28 15:00:21 +00:00
|
|
|
`pip install {{package_name}}`
|
2014-02-22 13:58:32 +00:00
|
|
|
|
2015-12-28 13:08:20 +00:00
|
|
|
- Install a specific version of a package
|
|
|
|
|
2015-12-28 15:00:21 +00:00
|
|
|
`pip install {{package_name}}=={{package_version}}`
|
2015-12-28 13:08:20 +00:00
|
|
|
|
2014-02-22 13:58:32 +00:00
|
|
|
- Upgrade a package
|
|
|
|
|
2015-12-28 15:00:21 +00:00
|
|
|
`pip install -U {{package_name}}`
|
2014-02-22 13:58:32 +00:00
|
|
|
|
|
|
|
- Uninstall a package
|
|
|
|
|
2015-12-28 15:00:21 +00:00
|
|
|
`pip uninstall {{package_name}}`
|
2014-02-22 13:58:32 +00:00
|
|
|
|
|
|
|
- Save installed packages to file
|
|
|
|
|
|
|
|
`pip freeze > {{requirements.txt}}`
|
|
|
|
|
|
|
|
- Install packages from file
|
|
|
|
|
2015-10-28 08:33:06 +00:00
|
|
|
`pip install -r {{requirements.txt}}`
|