2 ms·
I use the same workflow, and works for me very well. It would be cool, though, to have a wrapper around pip that adds any packages I install to the requirement
by abdullahkhalids 2y ago
I use the same workflow, and works for me very well.
It would be cool, though, to have a wrapper around pip that adds any packages I install to the requirements file. That way I don't have to do it manually.
- slt2021 2y agoI actually would love something like `pip generate-reqs` where pip goes through every .py file in my app and looks at whats being imported and writes these libraries to requirements.txt, together with all transitive dependencies from the currently installed `pip list`
- kiney 2y agopip freeze Is what you're looking for
- abdullahkhalids 2y agopip freeze lists all possible installed packages with exact version. I want only the manually installed packages in exactly the way I installed them. So pip install numpy>=3.2 should put numpy>=3.2 in requirements.txt. and pip install numpy should put numpy in requirements.txt.