LinuxCommandLibrary

pip-hash

Hash Python package requirements

TLDR

Generate hash for a package file

$ pip hash [path/to/package.whl]
copy

Generate hash using a specific algorithm
$ pip hash [[-a|--algorithm]] [sha256|sha384|sha512|...] [path/to/package.whl]
copy

Generate hashes for multiple files
$ pip hash [path/to/package1.whl path/to/package2.whl ...]
copy

Generate hash for downloaded archive
$ pip hash [path/to/package.tar.gz]
copy

SYNOPSIS

pip-hash [OPTIONS] [ARGUMENTS]
(Non-standard; syntax unknown or undefined)

DESCRIPTION

The pip-hash command is not a recognized standard subcommand of pip, Python's package installer, nor a built-in Linux utility. Pip (pip3 on some systems) manages Python packages but lacks a native 'hash' option for direct invocation as pip-hash. It may refer to third-party tools, scripts, or custom aliases for computing hashes of pip wheels, caches, or packages (e.g., SHA256 for integrity checks during installs). Pip internally uses hashes for verifying downloads via --require-hashes in pip install, but no standalone pip-hash exists in official documentation or man pages.

If encountered, it could be from a specific project (e.g., GitHub repos like pip-tools or auditing tools) or a misremembered alias. Verify with pip --help or pip3 --help; no matching entry appears. Use standard hashing tools like sha256sum for files.

CAVEATS

Not a standard command; attempting pip-hash will likely fail with 'unknown command'. Check pip version and custom installations. Avoid unverified third-party tools due to security risks.

ALTERNATIVES

Use pip install --require-hashes --hash=sha256:ABC123... for package verification, or sha256sum package.whl for manual hashing.

VERIFICATION

Run pip wheel --no-deps package then hash the .whl file.

HISTORY

No official history; pip evolved from easy_install (2008), with hash support added in pip 1.4+ (2013) for reproducible installs, but no dedicated pip-hash subcommand developed.

SEE ALSO

pip(1), sha256sum(1), md5sum(1), pipx(1)

Copied to clipboard