-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'setuptools._distutils' #8823
Comments
Feels like a setuptools bug at first glance, not pip. |
Had same issue, looks like setuptools problem - pypa/setuptools#2353 |
I thought I was pretty explicit that this is a setuptools 50 problem? The problem is that setuptools 50 is being installed. In any case, @vkrot-exos found a workaround: just change pypyoject.toml to use setuptools<50. So there is a workaround, so there's nothing we need from pip. Leaving this here for anyone who comes here searching for the same problem. |
I believe this is a pip bug; see #6264 (comment). |
Wow I truly have a knack for finding every problem with everything I touch. |
Environment
Description
pip install .
crashes.This might be due to pip installing setuptools 50.0.0 into the pip-build-env. If it were possible to tell pip not to use the latest setuptools, that might work as a workaround while setuptools figures out the underlying problem. But based on what I'm learning, it appears there's no way to directly meddle with what setuptools pip installs into the pip-build-env, which means that pip breaks completely when there's a bug in the latest released version of setuptools, with no ability to fall back to an old vesion.
Expected behavior
pip install .
should not crash.How to Reproduce
pip install .
Or just run the CI on Travis, which runs the commands in .travis.yml.Output
The text was updated successfully, but these errors were encountered: