-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Ability to freeze directly installed packages without their dependencies #9165
Comments
Ops, |
Hi DarkSuniuM, I recommend you using a new virtual environment every time you create a new project. https://realpython.com/python-virtual-environments-a-primer/ for more info. |
Hi there Which part of this topic made you think I'm using same env or global site-libs for all of my projects? xD |
What's the problem this feature will solve?
Get a list of packages I installed directly and they havn't installed as dependency.
For example:
$ pip install flask #... Installing collected packages: itsdangerous, MarkupSafe, Jinja2, Werkzeug, click, flask Successfully installed Jinja2-2.11.2 MarkupSafe-1.1.1 Werkzeug-1.0.1 click-7.1.2 flask-1.1.2 itsdangerous-1.1.0
Installing Flask, made multiple dependencies of flask, installed, Perfect.
but there is no way for me to only get the Flask package in my
pip freeze
command which I installed directly by myself.Describe the solution you'd like
Having a flag like
--intentionally
or even having this behavior as default and a flag for getting dependencies as well would be awesome, I'll explain why.Additional context
This can be a huge help on #5823, Even if #5823 gets implemented, still, people using
pip freeze > requirements.txt
will list all dependencies, and when someone does apip install -r requirements.txt
, All packages, including the dependencies listed inrequirements.txt
, will be installed as top-level by their own.The text was updated successfully, but these errors were encountered: