Cannot install spaCy 3.8 in python3.8 environment
How to reproduce the behaviour
On a clean environment with python 3.8 and pip, try pip install spaCy==3.8
Your Environment
- Operating System: windows
- Python Version Used: 3.8
- spaCy Version Used: 3.8
- Environment Information: clean environment with python 3.8 and pip
Hi, I just encountered the same error when trying to setup docker environment using python 3.8 and latest spacy version. Hope they fix it soon.
I'm the same too. my Python version is 3.8.19.
There was a problem with the metadata on that release. It shouldn't list support for older Pythons. I've yanked the release and am rebuilding.
Python only allows you to have one version of each library in the tree at once, and spaCy cannot support both numpy v1 and numpy v2 as they're binary incompatible. We need to update the pin to allow people to use spaCy with other libraries that require numpy v2. If numpy v2 doesn't support Python 3.8, this means spaCy can't support it either.
The only solution is to update your Python, or continue using the version of spaCy that's been working for you.
Python versions release every year now, which means the build matrix will grow quickly for libraries like numpy and spaCy that need to build wheels for each version of Python. This means libraries have to prune support for older Pythons, and you'll need to update your Python version periodically in order to keep using new library releases in the ML/data stack.
For python 3.8, spacy version 3.7.6 worked for me.
FYI, python 3.8 is being deprecated in 2024-10. Hence, best to upgrade python.
For python 3.8, spacy version 3.7.6 worked for me.
FYI, python 3.8 is being deprecated in 2024-10. Hence, best to upgrade python.
spacy version 3.7.6 is deleted now.
I use spacy==3.7.6a
Spacy Team,
This is added in latest version of spacy in requirements.txt:
numpy>=2.0.0; python_version < "3.9"
numpy>=2.0.0; python_version >= "3.9"
Is it correct?
may be this is the reason the latest version is not installing for py3.8.x version..
Unfortunately we have to keep dropping support for older versions, as they stop working on the CI we use to build. With Python versions being released every year, the compatibility matrix also grows too quickly to keep older versions supported. We therefore cannot build wheels for Python 3.8, although if you build from source and can get versions of the various libraries installed it might work.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.