-3

I'm a python beginner I'm facing issue on numpy

This is my code:

import numpy1 as np

a = np.array([(1, 2, 3), (4, 5, 6)])

print(a)

Error:

AttributeError: partially initialized module 'numpy1' has no attribute 'array' (most likely due to a circular import)

how to fix this?

JakobVinkas
  • 1,003
  • 7
  • 23

1 Answers1

-1

Its fixed for me after changing the name of Python file, because 'numpy' is a build in file name.