-
Notifications
You must be signed in to change notification settings - Fork 283
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
Can't install on Python 2.7 / 3.6+ #495
Comments
This looks to be related to pip 20.0.1 released recently as |
This isn't affecting just Python 2.7 - I can't install pytype in a 3.6 or 3.7 virtualenv either :( Looking at https://github.com/pypa/pip/issues, pip 20.0+ seems to be experiencing some release pains, with multiple reports of missing dependencies. I'll keep an eye on this to see if it resolves by itself, or if it's a problem with pytype. One thing that makes me a little nervous is scikit-build/ninja-python-distributions#27, which suggests the possibility that the ninja package we depend on is broken, instead of pip. |
Digging into this a bit more, it appears to be pypa/pip#7636. The problem described in scikit-build/ninja-python-distributions#27 occurs when trying to install the source distribution for ninja, but pip should be installing one of the prebuilt wheels instead. The only workaround I'm aware of is the suggestion by @tysonite to downgrade the pip version. |
It looks like this has been solved by pypa/packaging#258. And once pip team updates their dependency via resolving pypa/pip#7626, this issue probably will be solved as well. |
This appears to be fixed in pip 20.0.2. |
I believe there may still be an issue upstream with ninja; I get this same exact error in a GitLab CI/CD pipeline stage despite using pip 20.0.2.
Output:
Some other threads hint this might be alpine-linux specific (maybe?) but am having trouble dis-entangling things at the moment. |
@bsolomon1124 Have you ever successfully installed pytype in this environment? From what I can tell, the ninja source distribution does not install due to the missing |
Nope, sadly not 🤷♂ . (Working fine on RHEL 7 though.) Gave up today after fumbling around with different pip versions, VCS URLs, and the like. It does look to be because ninja fails to build on Alpine, and there are no working Alpine wheels that I can find. |
That's unfortunate; thanks for confirming. |
See the issue with Python 3.7 on Debian with pip 20.1.1. Solved by installing python3-dev.
|
Steps to reproduce:
The text was updated successfully, but these errors were encountered: