PIP-HASH(1)

πŸ’– pip-hash πŸ’–

okay bestie so this is the pip-hash page from the pip manual, and no cap it's a short one but it's so useful. sit with me for a sec 🫢


✨ NAME ✨

pip-hash β€” the whole entire description of the pip hash command, that's literally it, that's the vibe πŸ’…


🌸 DESCRIPTION 🌸

so what does it do?? it computes a hash of a local package archive. that's the whole thing. it's giving very focused, very main character, very one-job-and-she-does-it-well ✨

and why do you care, you ask? because these hashes can be used with --hash in a requirements file to do repeatable installs. fr fr. lock it in once, install it the same way forever. that's the dream πŸŽ€


πŸ¦‹ USAGE πŸ¦‹

python -m pip hash [options] <file> ...

yeah you just point it at one or more <file>s and it does its lil hash thing. iconic behaviour honestly 😌


πŸ’… OPTIONS πŸ’…

  • -a, --algorithm <algorithm> β€” this is the one picking which hash algorithm to use, and it's gotta be one of sha256, sha384, or sha512. that's the whole list, bestie, don't try to sneak anything else in there πŸ™ˆ
πŸ“ heads up: there's an environment variable for this one! PIP_ALGORITHM β€” set it and it'll vibe along with you.

πŸ‘‘ Author πŸ‘‘

pip developers β€” the whole squad, we love them, we thank them πŸ’œ


The pip developers β€” yes the same people, yes they own it, periodt ✨


and that's the page!! slay πŸŒˆπŸ’– this lil cutie is from pip version 26.0, dated Aug 26, 2026 β€” go forth and hash responsibly, bestie, ily πŸ«ΆπŸŽ€πŸ§š

πŸ“¦ where this page comes from
  • fedora 44: python3-pip 26.0.1-3.fc44 Β· MIT AND Python-2.0.1 AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MPL-2.0 AND (Apache-2.0 OR BSD-2-Clause)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms