mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #528] Build fails with setuptools 81+ due to pkg_resources removal #439
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#439
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mabunassar on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/openai/CLIP/issues/528
Description
Problem
CLIP fails to build with setuptools 82+ because
setup.pyimportspkg_resources, which was removed in setuptools 81 (08 Feb 2026).The failing line in
setup.py:Suggested fix
Replace pkg_resources.packaging with packaging from the standalone packaging library:
And add packaging to the build dependencies in setup.py or migrate to a pyproject.toml build system.
Workaround
Pin setuptools to <81 and disable build isolation for CLIP.
Environment
@dshepelev15 commented on GitHub (Feb 9, 2026):
Have the same issue
@amartinpascual commented on GitHub (Feb 10, 2026):
Same issue here
@Saladino commented on GitHub (Feb 10, 2026):
Same issue here
@yakulex commented on GitHub (Feb 10, 2026):
Same issue, worked after downgrading setuptools to 80 and pip to 25
@z-jiaming commented on GitHub (Feb 10, 2026):
Fix by
@ArmadstheDoom commented on GitHub (Feb 10, 2026):
This is wrong. Namely because it doesn't work, and it will just say that it's already installed.
@ArmadstheDoom commented on GitHub (Feb 10, 2026):
would you mind explaining how you did that?
@z-jiaming commented on GitHub (Feb 10, 2026):
But I fixed it right now.
@ArmadstheDoom commented on GitHub (Feb 10, 2026):
Great, still doesn't work.
@yakulex commented on GitHub (Feb 11, 2026):
Try this
@Iionccub365 commented on GitHub (Feb 11, 2026):
This worked for me! Setuptools<81 and pip<25.3 appears to be the solution. pip 25.3 deprecates the legacy setup and setuptools 81 removes pkg_resources
@codehia commented on GitHub (Feb 11, 2026):
With
setuptools==80.10.2,pip install <> --no-build-isolationworked for me without changing the pip version.