DepWeaver is an intelligent Python dependency resolver designed to tackle the complex compatibility challenges of data science and machine learning environments.
It navigates "dependency hell" by analyzing the entire dependency graph for your project, including nested and conditional dependencies, and uses a backtracking algorithm to find a set of package versions that are guaranteed to be compatible with each other.
https://pypi.org/project/depweaver/
Ever seen errors like these?
ModuleNotFoundError: No module named 'requests'InvalidVersion: Invalid version- A long traceback caused by conflicting versions of
numpy.
These issues arise when different packages in your project require incompatible versions of the same underlying library. DepWeaver is built to solve this problem automatically.
-
Create a
target.txtfile in your project's root directory. List the high-level packages you want to use, one per line.# target.txt pandas tensorflow scikit-learn matplotlib -
Run DepWeaver. From your terminal, simply run the
depweavercommand.depweaver
-
Get Your Results. DepWeaver will do the hard work and generate a complete, stable
requirements.txtfile for you. You can then install it with confidence.pip install -r requirements.txt
- Deep Graph Traversal: Explores the entire dependency tree, not just top-level requirements.
- Intelligent Conflict Resolution: Uses a backtracking solver to find a working set of versions, even with complex conflicts.
- Environment Aware: Understands conditional dependencies and only resolves packages that are compatible with your Python version and OS.
- Fast Caching: Caches package metadata locally to make subsequent runs feel instant.