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"
```
We wanted to use GPUs for spacy after recently upgrading to
spacy v3.8
, but this was impossible due to conflicting requirements. Thespacy[cudaXXX]
still depend oncupy < 13.0.0
, which is incompatible with numpy 2.0. Support for this has been added incupy 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