-
Notifications
You must be signed in to change notification settings - Fork 3k
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
RuntimeError: Python version >= 3.5 required. #6667
Comments
pandas is still using You should install numpy first with pip that will honor |
@xavfernandez I understand what you're saying in that I invoked However, you've failed to convince me this is someone else's problem. At some point, it was I feel that
Not doing either of the above will mean more |
This works as expected. Thanks. :-)
FYI: A pull request to introduce (or reintroduce?) |
Just to clarify, pandas wants to adopt pyproject.toml, but it's not a blocker for our next release. |
Well, pip has no concept of Since you are specifying |
Yea, there's nothing actionable here from pip's end -- in an ideal world, pandas would to switch over to PEP 518. Until that happens, it'd be best for pandas to improve error messaging that's printed when there's some sort of incompatibility. |
This comment has been minimized.
This comment has been minimized.
@tysonclugg speaking as a maintainer (not a pip maintainer), those kinds of comments are disheartening to read :/ |
@TomAugspurger I was miffed that the response had been "technically, pandas ..." and "nothing actionable by pip". I feel there is a reasonable case to update the docs, or the output of You're point is heeded though, the frustrated (and abrasive) tone of my previous comment was unnecessary. Apologies to all involved. |
Uhhhhh. I've also hidden your comment since I don't want to be reading that again. I understand that this can get a little frustrating. Let me clarify what @xavfernandez and I have been saying, since I don't think we've been super verbose/clear with our reasoning here. Apologies for that. This error is originating from pip developers, setuptools developers and a lot more people, worked together on PEP 518 to help with exactly this situation: specifying build dependencies. That's why one actionable item here is that pandas adopt the use of PEP 518 (i.e. use
I appreciate your suggestions but I think neither of them are actionable suggestions for pip.
pip does not have any logic for converting a source distribution to an installable artifact. It depends on external "build backends" for doing that. So, well, this is out of scope for this tool. :)
That's status quo and what we do already. The fact that pip depends on build backends is known to packager since they have to use the backend and tell it how to package things. Further, pip already states when it invokes a build backend. From your output in the first post:
To reiterate, pip's delegating to and printing the output from pandas's setup.py. Because of that, pip can't really do much here. The most I can think that pip can do is, change the error message to say "hey, talk to the maintainers of pandas about this failure" but that's not exactly a thing we want to do without considering the implications of that. Further, both pandas and setuptools are in a position to improve the output for this scenario:
I'm going to step back from this issue now. Don't @ me. :) |
I've extracted the suggestion above (change the error message to say "hey, talk to the maintainers of pandas about this failure") into issue #6959. I don't see anything else that needs to be addressed here and it's been awhile, so I will close this issue. |
Environment
Description
Fails to install packages from source where
install_requires
includes versions have incompatiblepython_requires
.Expected behavior
Source package should be installed with compatible versions of packages listed in
install_requires
fromsetup.py
. Eg: Installingpandas
in Python 2.7 should result innumpy
version 1.16.4 being installed (the last 2.7 compatible release before 1.17.0rc1).How to Reproduce
pip install --no-binary=pandas pandas
in a Python 2.7 environment.Output
The text was updated successfully, but these errors were encountered: