numba导入遇到SystemError: initialization of _internal failed without raising an exception

背景

导入numba遇到问题初始化异常

版本

numba:0.56.4
numpy:1.23.5

详细报错

SystemError: initialization of _internal failed without raising an exception

解决

https://stackoverflow.com/questions/74947992/how-to-remove-the-error-systemerror-initialization-of-internal-failed-without

原因是貌似是numba对于1.23.5的numpy支持不太好
两个选择
1.重裝numpy1.23.5
2.限制numpy版本1.23.4,即numba0.56.4&numpy1.23.4可行

你可能感兴趣的:(numba,numpy)