Monkeypatch to remove "UserWarning: pkg_resources is deprecated as an API" in Python

pypi logo
Anyone who meets similar only annoying "UserWarning: pkg_resources is deprecated as an API",
can solve it using the next commands in Windows Command Prompt or Windows Powershell:

uninstall setuptools
pip uninstall setuptools
reinstall the version which don't have these deprecated warnings.
pip install setuptools==66.1.1
or
pip install setuptools==69.0.2

Version of setuptools which has the deprecated warning: v67.3.0

No comments:

Post a Comment