AttributeError: module 'numpy' has no attribute 'float'.

AFL·2023년 12월 28일
0

error shooting

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

python 버전에 맞는 numpy 버전 맞춰주기.

pip install "numpy<1.24"

profile
공부해서 남주자

0개의 댓글

관련 채용 정보