Giovanni Wences
Giovanni Wences

Reputation: 19

module 'numpy' has no attribute 'bool'?

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?

Upvotes: 1

Views: 1922

Answers (1)

abhay bodhe
abhay bodhe

Reputation: 1

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

python -m pip install numpy==1.23.1

Upvotes: 0

Related Questions