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
pip install on python 2.7 attempting to install numpy 1.17, contrary to NEP 14 #14283
Comments
There seems to be a bug in pip or setuptools which causes this, can you try upgrading pip? (see also gh-13911 which I expect is a duplicate). You can probably upgrade pip with pip itself: |
the real question is why you're using python 2.7 |
there's lots of valid reasons to still run 2.7, please don't start that debate here. |
I am running the latest versions of both - pip 19.2.2 and setuptools 41.1.0.
Indeed there are. In my case I am trying to run an academically developed scientific analysis software that has not been ported to py3. But the point here isn't whether or not I should be using python 2.7, it is that numpy made a formal statement of expected functionality, and it is not the true functionality. That, in my mind, is the bug. |
I noticed yesterday that pip would not install pytest 5.0.1 for Python 2.7 because 2.7 was not supported, so pip is working correctly in some cases. I wonder if there is some information somewhere that needs updating for 1.17? |
You might try |
What does |
Hmmm, on my machine, pip 18.1 and setuptools 41.0.1 work fine (both binary and no binary mode). Upgrading to 19.2.2 and 41.1.0 does not change anything for me. The python version is As Chuck notes, I assume you make sure to use It would be really good to understand what exactly is causing this. |
@IPetrik would you be able to put together a completely reproducible example? You're using Anaconda, so something like:
I tried several variations of this, but cannot reproduce your issue. |
After trying to prepare a minimal example, I figured out the issue: we use a local devpi PyPI cache server that was in my |
Hmm, it seems that pip should handle that. Is there something special about the cache and |
I wonder if the devpi server is not forwarding the metainformation about the available versions for a given package properly. |
Found one reason that a new There's a workaround: explicitly do And the fix is: that package should add a |
A concrete case of that being
The workaround is simple, as @rgommers noted: first execute |
That's a Likely that's already reported, I have no time to look into it the coming days. @artob if you look if there's a Pip issue for this and open one otherwise, that'd be much appreciated. |
pip install numpy
on python 2.7 attempts to install numpy 1.17, which dropped python 2.7 support. This is contrary to the functionality described in NEP 14, which states:Numpy/Python version information:
pip version: 19.2.2
python: 2.7.15 |Anaconda, Inc.| (default, Oct 23 2018, 18:31:10) \n[GCC 7.3.0]
The text was updated successfully, but these errors were encountered: