DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

运行ner-standard的run_lstmcrf.py,源码安装的,对照requirement换了版本

Open Lpover opened this issue 3 years ago • 6 comments

image 使用run_bert和run_lstmcrf都是这样报错,请问这是啥报错啊

Lpover avatar Dec 23 '22 14:12 Lpover

可以更新下setuptools包试试 pip install --upgrade setuptools

tlk1997 avatar Dec 23 '22 15:12 tlk1997

可以更新下setuptools包试试 pip install --upgrade setuptools

您好,第一个Traceback解决了,但是第二个“AttributeError: module 'numpy' has no attribute 'object'”仍然存在

Lpover avatar Dec 24 '22 04:12 Lpover

可以更新下setuptools包试试 pip install --upgrade setuptools

您好,第一个Traceback解决了,但是第二个“AttributeError: module 'numpy' has no attribute 'object'”仍然存在

numpy包卸载了再安装试试

tlk1997 avatar Dec 24 '22 04:12 tlk1997

可以更新下setuptools包试试 pip install --upgrade setuptools

您好,第一个Traceback解决了,但是第二个“AttributeError: module 'numpy' has no attribute 'object'”仍然存在

numpy包卸载了再安装试试

尝试了,但是好像不是numpy包的问题

Lpover avatar Dec 24 '22 05:12 Lpover

可以更新下setuptools包试试 pip install --upgrade setuptools

您好,第一个Traceback解决了,但是第二个“AttributeError: module 'numpy' has no attribute 'object'”仍然存在

numpy包卸载了再安装试试

image 安装的1.24.0的numpy

Lpover avatar Dec 24 '22 05:12 Lpover

numpy降级到1.18.5就可以了

Lpover avatar Dec 24 '22 05:12 Lpover