4.在安装en_core_web_sm-3.2.0.tar.gz版本后,用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class” TypeError Traceback (most recent call last) C:\Users\NAVIGA~1\AppData\Local\Temp/ipykernel_24076/572880994.py in <module> ---> 1 import spacy ~\AppData\Roam...
This is a problem that is caused by a compatibility issue with one of the backend packages in python, package "pydantic" Resolution To fix TypeError: issubclass() arg 1 must be a class python -m pip install -U pydantic spacy After running this, the command should execute successfully: pytho...
According to this issue, the problem ("TypeError: issubclass() arg 1 must be a class") should only exist for pydantic v1.10.7 and earlier related to the recent release of typing_extensions v4.6.0. My versions are higher, but this error isn't solved. Sign up for free to join this ...
用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class”...
tar.gz版本后,用spacy.load()加载模型时报错:“TypeError: issubclass() arg 1 must be a class”...