Skip to content

Error when running pip-date.py #26

Description

@BarrierFly

Environment

  • OS:
    Microsoft Windows 11 家庭中文版 ()
  • Python version:
    Python 3.14.2 (tags/v3.14.2:df79316, Dec 5 2025, 17:18:21) [MSC v.1944 64 bit (AMD64)]
    nt
    win32
  • pip version:
    pip 26.0.1 from C:\Users\23699\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\pip (python 3.14)
  • Terminal/Shell: Windows PowerShell

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

  1. pip install pip-date
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions