A beginner-friendly guide to Python dependency management covering setup.py vs pyproject.toml, optional extras installation, alternative tools like Poetry, and virtual environment creation and best practices. Aimed at data engineers and data scientists new to Python packaging.

10m read timeFrom dagster.io
Post cover image
Table of contents
Table of ContentsManaging dependenciesManaging Dependencies the Old Way: setup.pyManaging Dependencies the New Way: pyproject.tomlInstalling “extras”Virtual environments (a.k.a. 'venvs')