Allow passing `--no-deps` to pip. Fixes #8967.