TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Python Dependency Management: Which Tool Should You Choose?

An in-depth comparison between Poetry, Pip, and Conda

Khuyen Tran
TDS Archive
Published in
10 min readJun 13, 2023

--

Image by Author

Originally published at https://mathdatasimplified.com on June 13, 2023.

Motivation

As your data science project expands, the number of dependencies also increases. To keep the project’s environment reproducible and maintainable, it’s important to use an efficient dependency management tool.

Thus, I decided to compare three popular tools for dependency management: Pip, Conda, and Poetry. After careful evaluation, I’m convinced that Poetry surpasses the other two options in terms of effectiveness and performance.

In this article, we will delve into the advantages of Poetry and highlight its key distinctions from Pip and Conda.

Available packages

Having a broad selection of packages makes it easier for developers to find the specific package and version that best suits their needs.

Conda

Some packages, like “snscrape,” cannot be installed with conda. Additionally, certain versions, such as Pandas 2.0, might not be available for installation through Conda.

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Responses (3)