Skip to content

"pip freeze" and "pip list" without dependencies of installed packages #10667

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

Closed
1 task done
Mark-Joy opened this issue Nov 19, 2021 · 1 comment
Closed
1 task done
Labels
resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature

Comments

@Mark-Joy
Copy link

Mark-Joy commented Nov 19, 2021

What's the problem this feature will solve?

Is it possible for pip freeze and pip list to show packages that are not dependencies of other installed packages?
In other words, it is the most simplified requirements.txt

Describe the solution you'd like

pip-chill is a solution. However, it can only show package and package's version. pip freeze can show other information such as editable installed packages or locally installed packages, and supports many other options as well.

Alternative Solutions

It would be great if pip freeze supports this feature as an option, for example: --exclude-dependencies

Additional context

pip-chill can be found here

Code of Conduct

@Mark-Joy Mark-Joy added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Nov 19, 2021
@uranusjr
Copy link
Member

See #8981. Note also that we are currently exploring a new approach in #10636 to this problem with what's going to be called "locking". Instead of trying to figure out what packages in an existing environment are "dependencies" and what are not, we prefer pip to generate the "lock file" from user specification (i.e. the user tells pip directly what packages are expected to be included), without requiring the environment in between. The environment can also be optionally brought into play as a constraint file.

@uranusjr uranusjr added the resolution: duplicate Duplicate of an existing issue/PR label Nov 19, 2021
@DiddiLeija DiddiLeija removed the S: needs triage Issues/PRs that need to be triaged label Nov 19, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants