Files
cheatsheet-tldr/tldr/pip-hash
2025-10-07 00:19:24 +00:00

26 lines
612 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pip hash
> Compute hashes of package archives for verification.
> More information: <https://pip.pypa.io/en/stable/cli/pip_hash/>.
- Generate hash for a package file:
`pip hash {{path/to/package.whl}}`
- Generate hash using a specific algorithm:
`pip hash {{[-a|--algorithm]}} {{sha256|sha384|sha512|...}} {{path/to/package.whl}}`
- Generate hashes for multiple files:
`pip hash {{path/to/package1.whl path/to/package2.whl ...}}`
- Generate hash for downloaded archive:
`pip hash {{path/to/package.tar.gz}}`