简体   繁体   English

如何删除错误“SystemError:_internal 的初始化失败但未引发异常”

[英]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.

相关问题 SystemError:QtCore 初始化失败,没有引发异常 - SystemError: initialization of QtCore failed without raising an exception Python 3.7.3 SystemError:错误返回,未设置异常 - Python 3.7.3 SystemError: error return without exception set 如何在不引发异常的情况下验证字节数组的解码? - How to validate the decoding of a bytearray without raising an exception? 创建numpy自定义对象数组会出现错误“SystemError:error return return without exception set” - Creating numpy array of custom objects gives error “SystemError: error return without exception set” 使用tf.data.Dataset.from_generator时出现“ SystemError:没有设置异常的错误返回” - “SystemError: error return without exception set” when using tf.data.Dataset.from_generator web.py有什么问题? SystemError:错误返回,没有设置异常 - what's wrong with web.py? SystemError: error return without exception set SystemError: 使用 ibm_db 连接到数据库时,无异常设置的错误返回 - SystemError: error return without exception set when connecting to the database using ibm_db Raspberry Pi2 Python adafruit_CharLCD SystemError:错误返回而未设置异常 - Raspberry pi2 Python adafruit_CharLCD SystemError: error return without exception set 从C调用python回调时,如何解决“ SystemError:内部例程的空参数”错误 - How can I fix “SystemError: null argument to internal routine” error when python callback in called from C python引发错误异常 - python raising an error exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM