반응형
python 앱 구동 중 발생한 에러
일단 에러 메시지에서 float이 쓰인 파일을 찾습니다.
(위 예시에서는 ...\librosa\util\utils.py 파일의 869번째 줄에서 에러 발생)
에러가 발생한 파일을 메모장으로 엽니다.
에러 메시지에 적힌 링크↓
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations.
NumPy 1.20.0 Release Notes — NumPy v2.3.dev0 Manual
NumPy 1.20.0 Release Notes This NumPy release is the largest so made to date, some 684 PRs contributed by 184 people have been merged. See the list of highlights below for more details. The Python versions supported for this release are 3.7-3.9, support fo
numpy.org
에러가 난 파일을 메모장으로 연 후 Ctrl+G키를 눌러서 에러가 발생한 줄로 이동합니다.
(위 예시에서는 869번째 줄)
에러가 발생한 줄로 이동하면 float이 쓰인 곳을 찾을 수 있습니다.
기존 np.float을 np.float64 또는 float으로 수정합니다.
수정 후 메모장을 저장하고 종료합니다.
에러가 난 python 앱을 종료하고 다시 실행해 봅니다.
반응형
'python' 카테고리의 다른 글
python AttributeError: module 'numpy' has no attribute 'complex' (0) | 2024.12.26 |
---|---|
python pip error: Microsoft Visual C++ 14.0 or greater is required (0) | 2024.12.26 |
댓글