[Python] How to solve AttributeError: module 'numpy' has no attribute 'bool'?

아래와 같은 오류는 numpy 버전이 호환되지 않는 경우에 발생하는데, mxnet 라이브러리를 사용하는 경우가 대표적이다.

 

How to solve AttributeError: module 'numpy' has no attribute 'bool'?

 

 

해결방법은 호환되는 버전으로 라이브러리를 재설치하는 것이다.

pip3 install mxnet-mkl==1.6.0 numpy==1.23.1