pip-compile [0] is the best tool I've found for streamlining dependency resolution, but it may not provide any benefit for one-shot installs.
Why would one want to infer the requirements file? Would that be like `pip list --not-required --format-freeze`?