Python Openpyxlでエラーが発生
===============================以下エラーコード====================================
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
File "C:(ディレクトリ), line 1, in <module>
import openpyxl as excel
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
通常Openpyxlを使用しても問題なく実行できています。
しかし、本日追加でNumpy, Pandasをインストールしたところ、上記のエラーが発生してしまいました。
対応方法についてご教示をいただけますと幸甚です。
何卒よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー