python 앱 실행 시 발생한 에러
에러 메시지에서 .complex가 사용된 코드를 찾습니다.
(예시에서는 dtype=np.complex 이 코드는 사용자마다 다를 수 있습니다)
.complex 코드를 찾은 후 코드 바로 윗줄에 있는 파일을 메모장으로 엽니다.
(예시에서는 ...\librosa\core\ 경로에 있는 constantq.py 파일)
메모장에서 해당 파일을 열고 Ctrl+G 키를 누르고 에러 메시지에 적힌 줄로 이동합니다.
(예시에서는 1059번째 줄)
에러 메시지에 적힌 링크 ↓
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
complex가 사용된 곳으로 바로 이동됩니다.
(예시에서는 dtype=np.complex)
기존 np.complex를 np.complex128 또는 complex로 수정합니다.
저장한 후 메모장을 종료합니다.
python 앱을 다시 실행해 보면 실행이 잘 됨을 알 수 있습니다.
'python' 카테고리의 다른 글
python 앱 AttributeError: module 'numpy' has no attribute 'float' (0) | 2024.12.27 |
---|---|
python pip error: Microsoft Visual C++ 14.0 or greater is required (0) | 2024.12.26 |
댓글