explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
30.12k stars 4.4k forks source link

SpaCy 3.8.2 CUDA extras are not compatible with numpy 2.0 #13681

Open CptCaptain opened 1 week ago

CptCaptain commented 1 week ago

We wanted to use GPUs for spacy after recently upgrading to spacy v3.8, but this was impossible due to conflicting requirements. The spacy[cudaXXX] still depend on cupy < 13.0.0, which is incompatible with numpy 2.0. Support for this has been added in cupy 13.2 back in june.

How to reproduce the behaviour

Try to install spacy[cuda12x]==3.8.2.

Details

``` ERROR: Cannot install spacy and spacy[cuda12x]==3.8.2 because these package versions have conflicting dependencies. The conflict is caused by: spacy 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" spacy[cuda12x] 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" cupy-cuda12x 11.5.0 depends on numpy<1.26 and >=1.20 thinc 8.3.2 depends on numpy<2.1.0 and >=2.0.0; python_version >= "3.9" spacy 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" spacy[cuda12x] 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" cupy-cuda12x 11.5.0 depends on numpy<1.26 and >=1.20 thinc 8.3.1 depends on numpy<2.1.0 and >=2.0.0; python_version >= "3.9" spacy 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" spacy[cuda12x] 3.8.2 depends on numpy>=1.19.0; python_version >= "3.9" cupy-cuda12x 11.5.0 depends on numpy<1.26 and >=1.20 thinc 8.3.0 depends on numpy<2.1.0 and >=2.0.0; python_version >= "3.9" ```

Your Environment

lsmith77 commented 10 hours ago

see also https://github.com/explosion/spaCy/issues/13669