tldr/pages/common/pip.md

28 lines
435 B
Markdown
Raw Normal View History

2014-02-22 13:58:32 +00:00
# pip
> Python package manager
- Install a package
`pip install {{package_name}}`
2014-02-22 13:58:32 +00:00
- Install a specific version of a package
`pip install {{package_name}}=={{package_version}}`
2014-02-22 13:58:32 +00:00
- Upgrade a package
`pip install -U {{package_name}}`
2014-02-22 13:58:32 +00:00
- Uninstall a package
`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
`pip install -r {{requirements.txt}}`