[英]How to remove the error "SystemError: initialization of _internal failed without raising an exception"
I am trying to import Top2Vec package for nlp topic modelling.我正在尝试为 nlp 主题建模导入 Top2Vec package。 But even after upgrading pip, numpy this error is coming.
但是即使升级了pip、numpy这个错误还是来了。
I tried我试过了
pip install --upgrade pip
pip install --upgrade numpy
I was expecting to run我期待着跑步
from top2vec import Top2Vec
model = Top2Vec(FAQs, speed='learn', workers=8)
but it is giving the mentioned error但它给出了提到的错误
It's probably related to the latest numpy release (v1.24.0).它可能与最新的 numpy 版本 (v1.24.0) 有关。 Try installing version 1.23.5:
尝试安装 1.23.5 版:
pip install numpy==1.23.5
For me it was not the numpy release as I was already on the version 1.23.5
.对我来说,它不是 numpy 版本,因为我已经在版本
1.23.5
上。 I simply restarted the kernel and re-imported top2vec
and it worked.我只是重新启动了 kernel 并重新导入
top2vec
并且它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.