Sobes.tech
Junior — Middle

What dependency management tools have you used in your project?

sobes.tech AI

Answer from AI

In Python projects, the following tools are commonly used for dependency management:

  • pip — the standard package manager for installing and updating libraries.
  • virtualenv or venv — for creating isolated virtual environments to prevent conflicts between project dependencies.
  • pipenv — combines virtual environment and dependency management, simplifying workflow.
  • Poetry — a modern tool that manages dependencies and project packaging, providing a user-friendly syntax and support for semantic versioning.

Example of using pip and virtualenv:

python -m venv venv
source venv/bin/activate  # for Linux/macOS
venv\Scripts\activate  # for Windows
pip install requests
pip freeze > requirements.txt

This allows fixing library versions and easily restoring the environment.