spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

Cannot install spaCy 3.8 in python3.8 environment

Open jianlins opened this issue 1 year ago • 5 comments

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

image

jianlins avatar Sep 12 '24 23:09 jianlins

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.

PeterLang412 avatar Sep 13 '24 14:09 PeterLang412

I'm the same too. my Python version is 3.8.19.

EI-Dios avatar Sep 14 '24 07:09 EI-Dios

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.

honnibal avatar Sep 14 '24 09:09 honnibal

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.

thatInfrastructureGuy avatar Sep 15 '24 22:09 thatInfrastructureGuy

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

WangYangfan avatar Oct 16 '24 04:10 WangYangfan

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..

Manivannan-Orion avatar Oct 25 '24 04:10 Manivannan-Orion

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.

honnibal avatar May 22 '25 12:05 honnibal

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.

github-actions[bot] avatar Jun 22 '25 00:06 github-actions[bot]