If you encounter a problem similar to this:
from pkg_resources import iter_entry_points ModuleNotFoundError: No module named 'pkg_resources'
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"] ...
Top comments (0)