Comments (14)
Python 2.7.18 is still provided as standard installation in Anaconda 3. it is weird that this does not work
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:
- In a separate terminal create a separate conda environment with Python 3
- Install
pypi-timemachine
in that conda environment, and read it's documentation - Run
pypi-timemachine
set to 2019-12-31 or earlier - Use pip in your Python 2 environment and point it to pypi-timemachine following the documentation
- Optionally, you may also need to use the legacy resolver option for pip
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.
from pip.
tables
3.5.2 which is the last release with Python 2.7 wheels depends on numexpr >= 2.6.2
. In your situation (by looking at the logs), pip selects numexpr
2.8.1 which declares a build-time dependency on oldest-supported-numpy
. The build step is necessary as this numexpr release has no Python 2.7 wheels.
Anyway, it looks like you'll need to use older versions of these packages. At the bare minimum, numexpr
2.7.3 is the last version to ship with Python 2.7 wheels (which won't need oldest-supported-numpy
)
from pip.
Another approach which might have helped here (and might be of use to others hitting similar issues) is to use --only-binary :all:
. This will stop pip from using anything but pre-built wheels. If everything you need still has some Python 2 compatible binary wheel available, then pip would probably be able to find them. And by not allowing builds from source, if you are missing binaries that matter, you'll get a slightly more understandable message ("could not find a version of foo that is compatible") in place of a complicated build error traceback.
from pip.
Python 2.7 is eol since years
Please try and python version under active maintenance
from pip.
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
from pip.
You'd need to take that up with Anaconda. Pip doesn't support Python 2.7 any more.
from pip.
Ha! Funny. I have opened this originally in conda but devs pointed to pip!
conda/conda#13830
@pfmoore is there perhaps an earlier version of pip that I could try?
from pip.
That version is already being used,
I suspect there simply is no python 2 version of the package you asked for
from pip.
I was using this package on py2.7 before I had to re-build a py2.7 environment.
I suspect the cause is either upgraded pip does not work with library tables or there is some issue with dependencies
from pip.
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
from pip.
What version of python is provided if you don't explicitly pick 2.7 as you do?
from pip.
Although I can pick py3, I have scripts in py2 that I would like to run, and tables is the library I would need.
I understand moving to py3 is a solution, but not the one I am looking for.
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
from pip.
@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
from pip.
tables
3.5.2 which is the last release with Python 2.7 wheels depends onnumexpr >= 2.6.2
. In your situation (by looking at the logs), pip selectsnumexpr
2.8.1 which declares a build-time dependency onoldest-supported-numpy
. The build step is necessary as this numexpr release has no Python 2.7 wheels.Anyway, it looks like you'll need to use older versions of these packages. At the bare minimum,
numexpr
2.7.3 is the last version to ship with Python 2.7 wheels (which won't needoldest-supported-numpy
)
This actually made the trick! Thank you so much!! @ichard26
from pip.
Related Issues (20)
- Continue downloads after network error. HOT 2
- Hash not matching HOT 1
- Hash comparison is case-sensitive
- [Documentation] Improve the documentation for pip.ini / pip.config
- Add / Extend Pip install command to automatically update the requirements.txt file HOT 1
- pip problem being recognized. HOT 1
- Installation error for package with un-normalized extra names in pip 24.1b1 HOT 10
- Possible to configure "truststore" to be persistent? HOT 5
- pip does not work with development versions of CPython due to parse error on version string HOT 6
- ModuleNotFoundError: No module named 'pip' HOT 2
- Command - pip reset HOT 6
- python -m ensurepip doesn't create the pip.exe shortcut on python-3.13.0b1 HOT 2
- installing via "git+file" fails under Windows when url point to different drive-letter HOT 1
- Pip >22.2.2 fails to install package from a proxy mirror of PyPI, but can do so directly from PyPI HOT 9
- "No module named 'Cython'", but only when installing a package and only with pip 23.1 or later HOT 2
- ERROR: Fatal Internal error [id=1] HOT 4
- Improve the release process to enable trusted publishing HOT 1
- Improve UX and Performance of Install step HOT 6
- Show the detailed error when facing invalid requirements HOT 6
- pip-24.1b1 doesn't tolerate anymore a contraint like 'python-hdf4>=0.10.0+dummy' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip.