Skip to content

setup.py breaks with setuptools>=82: No module named 'pkg_resources' #9380

@xwang233

Description

@xwang233

setuptools 82.0.0 (released 2026-02-08) removed pkg_resources, which breaks building torchvision from source:

  File "<string>", line 14, in <module>
ModuleNotFoundError: No module named 'pkg_resources'

The import is at

from pkg_resources import DistributionNotFound, get_distribution, parse_version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions