A tool to find packages that should or should not be in requirements for a Python project. It checks for missing dependencies (packages imported but not listed) and unused packages (listed but not imported). Current version 2.5.6, requires Python >=3.9, actively maintained.
pip install pip-check-reqsVerified import paths — ran on the pinned version, not inferred.
Basic usage: check for missing dependencies and find unused packages in a requirements file.
Manually verify dynamic imports or use a more comprehensive tool like `pip-audit` or `safety`.
Always run in a virtual environment where all project dependencies are installed via `pip install -r requirements.txt`.
Use `pip-check-reqs check-requirements -r requirements.txt` instead of `--requirements requirements.txt`.
Fix the requirements file to comply with PEP 508 format. Example: 'package>=1.0' not 'package >=1.0' with extra spaces.
Install the missing package via `pip install some_package` or add it to requirements.txt.
Run `pip install -r requirements.txt` to install all listed packages.
No dependency data recorded yet.