报错:raise AttributeError("module {!r} has no attribute "AttributeError: module ‘numpy’ has no attribute ‘typeDict’
可能的原因
当前的numpy版本过新了
numpy.typeDict 是 numpy 的一个旧属性,用于存储数据类型字典。然而,在较新的 numpy 版本中,这个属性已经被移除或重命名了。
解决方案
考虑降级 numpy 到一个较旧的版本,其中仍然包含 typeDict 属性。
可以使用以下命令安装旧版本:
pip install numpy==1.18.5