简体   繁体   中英

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. But even after upgrading pip, numpy this error is coming.

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). Try installing version 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 . I simply restarted the kernel and re-imported top2vec and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM