module 'numpy' has no attribute 'bool'?

1k views Asked by At

I am following some tutorials for the implementation of TICA, to do a dimension reduction, but I have the following problem;

AttributeError: module 'numpy' has no attribute 'bool'. np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ 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

I've already updated numpy, but I still get the same error.

What could I do?

I've already updated numpy, and I have create a entorn in conda, but I still get the same error.

What could I do?

1

There are 1 answers

0
abhay bodhe On

Solution for this is to downgrade numpy, this worked for me

python -m pip install numpy==1.23.1