Does module 'numpy.core' has a replacement or upgrade for attribute 'numerictypes'

Hi all and thank you in advance for acknowledging my presence!

I have been getting a constant error and I am not certain if this is being caused by old packages!

THE ERROR**********

File “/Users/mmgp/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py”, line 1475, in
_NON_AUTOPACKABLE_TYPES = set(np.core.numerictypes.ScalarType)

AttributeError: module ‘numpy.core’ has no attribute ‘numerictypes’

WHAT I DID ALREADY:
I tried upgrading all numpy packages according to Stacks Overflow and other python communities!

but this error is constant and its a tad daunting when one cannot see their errors to move forward hence me posting such here for additional guidance and support!

can someone help me to understand the necessary steps that I must take to move forward, please?

1 Like

Hi ,
Did you solve the problem i’ve got the same error i need your help

Hi Safa,

The original error was:

File "/Users/mmgp/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py", 
  line 1475, in <module>
  _NON_AUTOPACKABLE_TYPES = set(np.core.numerictypes.ScalarType)
AttributeError: module 'numpy.core' has no attribute 'numerictypes'

That looks like a bug in tensorflow to me. You should contact Anacoda
and ask them what to do.