How do I list packages that I have directly installed with pip
, omitting any dependences that have been installed as a result?
I have a virtualenv in which I've run, commands like
$ pip install A B C
$ pip install X Y Z
as a result of which I have installed not only A, B, C, X, Y, and Z, but also dependences p, q, r, s, t, u, v, and w. But looking at any given package, I can't recall whether it was something I installed directly or not. I would like to keep the directly installed packages in this venv uptodate with something like
$ pip install -U --directly-installed
that has the effect of
$ pip install -U A B C X Y Z
Is there a way to keep only the directly installed packages explicitly up to date (updating their dependences only as required by those packages)?