Macos 运行报错
Mumuuu opened this issue · 4 comments
Mumuuu commented
Mumuuu commented
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtin float
. To avoid this error in existing code, use float
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64
here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Mumuuu commented
macos 11.6.2
python 3.8.16
pip 23.0.1
SkewwG commented
将模块版本号删掉安装试试
GreyFoxKnight commented
将 File "/usr/local/lib/python3.xx/dist-packages/openpyxl/compat/numbers.py", line 49 的 numpy.float 删除