使用@jit(nopython=True)装饰器报错:module ‘numpy‘ has no attribute ‘typeDict

一、报错原因

是因为numpy和scipy库之间存在版本冲突或不兼容的问题,或者其他与numpy有关的包导致了这个错误。

二、解决

pip install --upgrade numpy scipy

猜你喜欢

转载自blog.csdn.net/weixin_72050316/article/details/131961078