Python Dependency Management
Discussions center on recommending and comparing Python dependency management tools like Poetry, Pipenv, PDM, and pip-tools as superior alternatives to basic pip and requirements.txt for handling dependencies, lockfiles, and virtual environments.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Have you tried Poetry? (https://python-poetry.org)
I think poetry is rally gaining traction. Poetry solves some problems in an easy way that are cumbersome to replicate with pip (like guarding against supply chain attacks with lock files) and teams are starting to realize that basic use of pip and requirements.txt no longer is enough to manage dependencies. I am starting to more an more projects adopting poetry and the uptake seems to look like the uptake I saw in FastAPI. Side note: I tried using pipenv, but is was just too slow for resolving d
Try poetry. https://johnfraney.ca/posts/2019/03/06/pipenv-poetry-benchma...
Respectfully, this reads like you're using outdated Python tools.Give Poetry [1] a shot, it has all the things you've listed here. Just as Node.js has come a long way in the last 5 years, Python has, too. Albeit, in a fashion that was much less centralized, arguably to Python's detriment.[1]: https://python-poetry.org/history/#100---2019-12-12, released 1.
Poetry is not stable at all. pip-tools all the way, if not…pdm please
Pipenv is a bit deprecated, Poetry is the current recommendation (and what I use).
Even pip is pip-installable. What makes poetry any different?
pipenv is terrible. poetry ain't there yet. seems author forgot to mention the problems with pipenv and poetry. virtualenv + pip will take you far. then to reproduce pipe to requirements.txt. poetry etc are still using pip under the hood
Most of the tools you mentioned appeared precisely because the basics with Python don't work that well. I had a project that started similarly, and in the end I had to use to pip-tools to actually separate top-level requirements and lockfiles for different "flavors" of the package (production and dev dependencies, for example). For new projects I would seriously consider poetry because it manages those two concepts directly. There's also the problem of changing requirement fi
As someone not up to date on the Python world, how does your suggestion compare with something like Poetry?