tldr/common/pip.md

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