-2
import numpy as np
n2=np.zeros((5,5))

error=
Traceback (most recent call last):
  File "f:\Python Program\numpy.py", line 1, in <module>
    import numpy as np
  File "f:\Python Program\numpy.py", line 2, in <module>
    n1= np.zeros((3,3))
AttributeError: partially initialized module 'numpy' has no attribute 'zeros' (most likely due to a circular import)
MisterMiyagi
  • 44,374
  • 10
  • 104
  • 119

1 Answers1

-1

Have you tried reinstalling numpy ?

pip install --upgrade --force-reinstall numpy