Setuptools has removed pkg_resources which the dev-dependency MLflow version is using.
.venv/lib/python3.12/site-packages/mlflow/utils/requirements_utils.py:20: in <module> import pkg_resources # noqa: TID251 E ModuleNotFoundError: No module named 'pkg_resources'
After downgrading setuptools:
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
Setuptools has removed pkg_resources which the dev-dependency MLflow version is using.
.venv/lib/python3.12/site-packages/mlflow/utils/requirements_utils.py:20: in <module> import pkg_resources # noqa: TID251 E ModuleNotFoundError: No module named 'pkg_resources'After downgrading setuptools:
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.