Open Nandhu-Sai-Datta opened 4 months ago
The errors look like this:
thinc\structs.pxd:140:4: function definition in pxd file must be declared 'cdef inline'
so the code should be changed, or the cython version used by the project changed.
Why are you pinning such an old version? 3.7.5 is the current version. It's likely that doesn't work with Cython 3, and newer versions are more likely to support it. If you need to install old versions of things you could try uv
instead of pip
, as it has a uv pip install spacy --exclude-newer 2020-12-11
; also you should not use Python 3.12 with a package that came out 4 years before ago. 3.8 or 3.9 if you do actually require the old spacy
version.
OS version
Windows 11
Python version
python 3.12
Pip version
pip 24.0 from C:\Users\nandh\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip (python 3.12)
Guide link
No response
Problem description
pip install spacy==2.3.5
Error message