0

I've just installed a NumPy in my computer and everything in Python consol is OK- https://i.stack.imgur.com/DFC4O.png

but in every interpreter i have the same problem: https://i.stack.imgur.com/ANxG2.png

Thanks for help!

  • 3
    Post text, not screeshots. Can't copy a screenshot – Mad Physicist May 25 '18 at 15:36
  • It's because you named your filename itself as numpy, you shouldn't name your classes or functions after standard libraries(which you imported in this case) or inbuilt functions – ThReSholD May 25 '18 at 20:17

2 Answers2

8

You called your program file numpy.py so the file is trying to import itself rather than the real numpy module. Call your file something like numpy_test.py instead.

Rob Bricheno
  • 4,467
  • 15
  • 29
0
  1. Be sure you use the correct Python path.
  2. If other attributes works well?
  3. you should check this link first Why does PyCharm give unresolved reference errors on some Numpy imports?
forAllBright
  • 61
  • 1
  • 8