<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm" -->

---
title: Time to Ditch Requirements.txt now! Start using Poetry....
description: Learn about Poetry, a package dependencies management tool for Python that solves package dependency issues. Install Poetry using pip and create a Python...
canonical: https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Time to Ditch Requirements.txt now! Start using Poetry. Python Poetry Example | daily.dev
og:description: Learn about Poetry, a package dependencies management tool for Python that solves package dependency issues. Install Poetry using pip and create a Python...
og:url: https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm
og:image: https://api.daily.dev/og/posts/TN2qqfqBM.png
og:image:alt: Time to Ditch Requirements.txt now! Start using Poetry. Python Poetry Example
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Time to Ditch Requirements.txt now! Start using Poetry. Python Poetry Example

**[Community Picks](https://daily.dev/sources/community)** · 11 min read · 45 upvotes · 2 comments

## Summary

Learn about Poetry, a package dependencies management tool for Python that solves package dependency issues. Install Poetry using pip and create a Python project using Poetry.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devdojo.com/pratikpathak/time-to-ditch-requirementstxt-now-start-using-poetry-python-poetry-example>

## Community discussion

Top comments from developers on daily.dev.

**@diabl** · 4 upvotes

> Yeah, we are using poetry for our production API. Initially we thought that it's cool idea, but apparently, it's not that simple.
> For example, building Dockerfiles is a giant problem. If you are not going to commit your lock file, installing dependencies will take forever (~20 minutes for us). Second problem is that dependencies are installed into hidden venv, which you need to solve by either tricking poetry into installing dependencies globally by disabling virtualenvs, using multi-stage (https://github.com/python-poetry/poetry/issues/1178) or exporting deps into requirements.txt anyway....

**@josephhansen** · 1 upvotes

> Good stuff! It's nice seeing Python move in a more standard, package-based direction

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Time to Ditch Requirements.txt now! Start using Poetry. Python Poetry Example","url":"https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm"},"datePublished":"2024-05-17T07:28:54.179Z","dateModified":"2024-05-17T07:28:53.366Z","description":"Learn about Poetry, a package dependencies management tool for Python that solves package dependency issues. Install Poetry using pip and create a Python...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1025dc4732cf651e3f09b69330c2f4e5?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1025dc4732cf651e3f09b69330c2f4e5?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":45},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"python","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Time to Ditch Requirements.txt now! Start using Poetry. Python Poetry Example"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/time-to-ditch-requirements-txt-now-start-using-poetry-python-poetry-example-tn2qqfqbm","comment":[{"@type":"Comment","text":"Yeah, we are using poetry for our production API. Initially we thought that it’s cool idea, but apparently, it’s not that simple.\nFor example, building Dockerfiles is a giant problem. If you are not going to commit your lock file, installing dependencies will take forever (~20 minutes for us). Second problem is that dependencies are installed into hidden venv, which you need to solve by either tricking poetry into installing dependencies globally by disabling virtualenvs, using multi-stage (https://github.com/python-poetry/poetry/issues/1178) or exporting deps into requirements.txt anyway.\nAnd it gets even worse if you want to deploy to the server instead of dealing with docker. Now you need to setup CI/CD pipeline to export deps, then build package if you are whl/module setup enjoyer, install it on the server using pip and deal with relocking and reinstalling half of the server deps if something is changed in you pyproject.toml.\nBut maybe I’m missing something, and this can be done differently.","datePublished":"2024-05-25T08:51:01.416Z","dateModified":"2024-05-25T08:55:05.389Z","url":"https://daily.dev/posts/TN2qqfqBM#c-mkPXAYl40","author":{"@type":"Person","name":"Diablo.project","url":"https://daily.dev/diabl","image":"https://avatars.githubusercontent.com/u/88728143?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Good stuff! It’s nice seeing Python move in a more standard, package-based direction","datePublished":"2024-05-22T20:24:44.107Z","url":"https://daily.dev/posts/TN2qqfqBM#c-7dezsrNYR","author":{"@type":"Person","name":"Joseph Hansen","url":"https://daily.dev/josephhansen","image":"https://avatars.githubusercontent.com/u/45859835?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

