Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: pip freeze --no-auto-installs to list all the packages I installed, but not their dependencies #2100

Closed
avinassh opened this issue Oct 18, 2014 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@avinassh
Copy link

If I do pip install django and do pip freeze it will list django and also all the dependencies. However it would be nice to list only the packages I installed (telling explicitly to pip), without listing their dependencies.

something like pip freeze --no-auto-installs may be?

Let's say, if you install django package, two other dependencies, say django-dep1 and django-dep2 are also get installed.

Case 1:

$ pip install django
...
$ pip freeze
 django == 1.8
 django-dep1 == 1.3
 django-dep2 == 0.1.2
...
$ pip freeze --no-auto-installs
  django == 1.8

Case 2:

$ pip install django django-dep1
...
$ pip freeze 
 django == 1.8
 django-dep1 == 1.3
 django-dep2 == 0.1.2
...
$ pip freeze --no-auto-installs
 django == 1.8
 django-dep1 == 1.3
@pfmoore
Copy link
Member

pfmoore commented Oct 18, 2014

Unfortunately, that information isn't available. PEP 376 proposes a REQUESTED file in the dist-info directory that records whether a distribution was installed by direct user request, but to my knowledge, no installer actually implements this feature.

@msabramo
Copy link
Contributor

Would #1946 be useful for your use case?

@dstufft
Copy link
Member

dstufft commented Mar 22, 2017

Closing this, pip does not track this information so we can't expose it, and I believe the problem being solved here would be better solved using pip-compile from pip-tools.

@dstufft dstufft closed this as completed Mar 22, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants