Environment
Description
A "ModuleNotFoundError: No module named 'pkg_resources'", likely triggered by the script trying to call pkg_resources which is not available. From what I've found this seems to be a component deprecated by setuptools.
Expected behavior
The script does something and reports no error.
Actual Behaviour:
It reported "ModuleNotFoundError: No module named 'pkg_resources'".
How to Reproduce
- pip install pip-date
- in the Scripts dictionary, python pip-date.py
Output
PS C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Scripts> python pip-date.py
Traceback (most recent call last):
File "C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Scripts\pip-date.py", line 45, in
import site, pkg_resources # noqa: E401
^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'
Supplement
It worked after I installed setuptools<81.
Environment
Microsoft Windows 11 家庭中文版 ()
Python 3.14.2 (tags/v3.14.2:df79316, Dec 5 2025, 17:18:21) [MSC v.1944 64 bit (AMD64)]
nt
win32
pip 26.0.1 from C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\pip (python 3.14)
Description
A "ModuleNotFoundError: No module named 'pkg_resources'", likely triggered by the script trying to call pkg_resources which is not available. From what I've found this seems to be a component deprecated by setuptools.
Expected behavior
The script does something and reports no error.
Actual Behaviour:
It reported "ModuleNotFoundError: No module named 'pkg_resources'".
How to Reproduce
Output
PS C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Scripts> python pip-date.py
Traceback (most recent call last):
File "C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Scripts\pip-date.py", line 45, in
import site, pkg_resources # noqa: E401
^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'
Supplement
It worked after I installed setuptools<81.