Skip to content
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

Cannot install spaCy 3.8 in python3.8 environment #13625

Open
jianlins opened this issue Sep 12, 2024 · 6 comments
Open

Cannot install spaCy 3.8 in python3.8 environment #13625

jianlins opened this issue Sep 12, 2024 · 6 comments
Labels
deprecated Deprecated features resolved The issue was addressed / answered

Comments

@jianlins
Copy link

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

@PeterLang412
Copy link

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.

@EI-Dios
Copy link

EI-Dios commented Sep 14, 2024

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

@honnibal
Copy link
Member

honnibal commented Sep 14, 2024

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 honnibal added deprecated Deprecated features resolved The issue was addressed / answered labels Sep 14, 2024
@thatInfrastructureGuy
Copy link

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.

@WangYangfan
Copy link

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

@Manivannan-Orion
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated Deprecated features resolved The issue was addressed / answered
Projects
None yet
Development

No branches or pull requests

7 participants