Error: `'Py_hash_t'` does not name a type

I need your help. I can’t build tensorflow from source, gcc compiler is giving me the following error:

'error: 'npy_hash_t' does not name a type; did you mean 'npy_half'?'

And I don’t understand why… Am I missing something?

Hi @joshiayush

Welcome to the TensorFlow Forum!

This error shows up when the numpy version is not updated or compatible with the existing TensorFlow version in your system. Please try again by upgrading the numpy version atleast >=1.19.0 using

!pip install --upgrade numpy

Let us know if the issue still persists. Thank you.