mirror of
https://github.com/GokuMohandas/Made-With-ML.git
synced 2026-03-08 23:02:27 -05:00
ModuleNotFoundError: No module named 'pkg_resources._vendor' #74
Reference in New Issue
Block a user
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 @hoangziet on GitHub (Mar 27, 2025).
Although I did install all the packages as instructed in Setup . But when I do run the cell code in Distributed Data Processing, I get the following error.
@satishsersia commented on GitHub (Apr 2, 2025):
I have kind of solved the issue by upgrading to ray==2.44.1
@harshasanthapur commented on GitHub (Jul 12, 2025):
I have the same issue, not able to move forward. Any solution.
@lyly98 commented on GitHub (Oct 2, 2025):
Ray 2.7.0 can't find pkg_resources._vendor module with newer setuptools versions. The only way i found was downgrading setuptools to a version that still includes the pkg_resources._vendor module that Ray 2.7.0 needs.
pip install "setuptools>=65.0.0,<70.0.0"@ShakirKhurshid commented on GitHub (Oct 25, 2025):
Why this happens?
Solution
If you've already installed everything
Just downgrade setuptools while in your virtual env:
Linux / macOS :
Tip: To avoid this issue next time, pin
setuptools==68.0.0in requirements.txt.