在导入"en_core_sci_sm"版本 0.5.4 时,从 C 头文件中预期获取 96,但从 PyObject 中获取了 88
作者: mevol创建于 2026年7月17日更新于 2026年7月31日
How to reproduce the behaviour
The issue occurs during import of "en_core_sci_sm" version 0.5.4. The error trace is below. The issue seems to be related to numpy. This error has occurred previously and seems to be recurring whenever the numpy version changes. The main problem seems to be that "en_core_sci_sm" depends on an older spaCy version which runs on a numpy 2.x that has this error.
内容来源: explosion/spaCy