-
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
Unable to install python library tables on newly created python 2.7.18 in Anaconda 3 #12647
Comments
Python 2.7 is eol since years Please try and python version under active maintenance |
Thanks but this is not helping unfortunately. Python 2.7.18 is still provided as standard installation in Anaconda 3. it is weird that this does not work |
You'd need to take that up with Anaconda. Pip doesn't support Python 2.7 any more. |
Ha! Funny. I have opened this originally in conda but devs pointed to pip! @pfmoore is there perhaps an earlier version of pip that I could try? |
That version is already being used, I suspect there simply is no python 2 version of the package you asked for |
I was using this package on py2.7 before I had to re-build a py2.7 environment. |
https://pypi.org/project/oldest-supported-numpy/0.1/#data Even the oldest version of this is python 3 only So again stop using python 2 If anaconda still has that as a default I consider it a absolutely failure on them |
What version of python is provided if you don't explicitly pick 2.7 as you do? |
Although I can pick py3, I have scripts in py2 that I would like to run, and tables is the library I would need. The key question is: why is now tables asking for oldest-supported-numpy? this was never a requirement as this library is not supported in py2 |
@matx93 because there is no python2 wheel, so pip tries to build it, and the latest version of tables (python3.9+) does not support python2 python2 has been completely eol since the start of 2020 - if you still need something in python2 to work, its completely on you to correctly pin all of the severely outdated versions of the packages you need |
Just because a software is available to download and install does not mean it is supported. Anaconda has stopped supporting Python 2.7, Python Foundation has stopped supporting Python 2.7, PyPA has stopped supporting Python 2.7, RHEL still supports Python 2.7 for the next couple of months but you must pay for that support and they don't support using pip to install libraries. It is still possible to use 2.7, but it means you need to support it yourself, so you need to figure out how to install old packages yourself or go to help forums and ask there. I think the main issue you're having is pip is trying to resolve packages that are too new to install into Python 2.7. This is a common problem with old Python versions, and there are lots of reasons it can't be automatically solved. But there are workarounds, I would recommend you do this:
By doing this you won't get any newer packages than what were available on 2019-12-31, which should in general resolve your this particular issue with continuing to use Python 2.7. Hope this helps and good luck. |
Anyway, it looks like you'll need to use older versions of these packages. At the bare minimum, |
This actually made the trick! Thank you so much!! @ichard26 |
Another approach which might have helped here (and might be of use to others hitting similar issues) is to use |
Description
Command pip install tables failed on environment python 2.7.18 created with Anaconda 3
ERROR: Could not find a version that satisfies the requirement oldest-supported-numpy (from versions: none)
ERROR: No matching distribution found for oldest-supported-numpy
Expected behavior
No response
pip version
20.3.4
Python version
2.7.18
OS
W10
How to Reproduce
Install py2.7 on Anaconda 3:
conda create -n py27 python=2.7
Install tables
pip install tables
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: