numpy (3) 썸네일형 리스트형 [Numpy] Numpy, Pandas, Matplotlib 버전 문제 문제 발생 이전 포스트에 올렸던 것처럼 아래와 같은 경고가 나왔다. module 'numpy' has no attribute 'object', 'bool', 'typeDict'. 이전에는 야매(?)로 해결했는데 이번에는 근본적인 해결책을 찾은 것 같다. 문제 발생 원인은 numpy의 버전이 업데이트 되면서 변수명이 달라지게 되면서 다른 모듈에서 numpy의 이전 변수를 호출하여 위와같은 메시지가 발생한 것이다. 즉, numpy와 기타 모듈의 버전을 낮춰주면 되는 것이다. numpy 1.21.0 릴리즈 노트를 확인하면 해당 변경에 대한 메시지를 확인할 수 있다. 따라서 1.21.0의 이전버전을 사용하면 해당 에러는 발생하지 않을 것이다. numpy .. [Numpy] module 'numpy' has no attribute 'object', 'bool', 'typeDict'. 에러 해결 텐서플로를 사용하기 위해서 tensorflow를 import하는 중 import tensorflow as tf 아래와 같은 오류가 나왔다. AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details .. [Prophet] TypeError: ufunc 'isfinite' not supported for the input types 에러 Prophet을 실행하다가 갑자기 아래와 같은 에러가 등장했다. TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''해결 numpy와 matplotlib의 버전이 호환이 잘 안되는 경우 발생하는 문제로 확인된다. 따라서 두 패키지를 업데이트 하면 잘 실행이 된다. pip install numpy --upgrade pip install matplotlib --upgrade 이전 1 다음