Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Poetry & setuptools trouble fix
Denis Anikin
Denis Anikin

Posted on

Poetry & setuptools trouble fix

If you encounter a problem similar to this:

from pkg_resources import iter_entry_pointsModuleNotFoundError: No module named'pkg_resources'
Enter fullscreen modeExit fullscreen mode

However, there is a chance that you are using poetry and your lock file has a setuptools dependency. And yet, when you install your dependencies, setuptools is missing somewhere. So how do you fix this?
Very simple, but a bit counterintuitive. Simply change your build-system as follows.

...[build-system]requires=["setuptools","poetry_core>=1.0"]...
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Fullstack, Python, Typescript, Teamlead
  • Education
    MIREA
  • Work
    Raiffeisenbank
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp