tldr/pages/common/pip.md

336 B

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}}