I created a file
https://docs.scipy.org/doc/numpy/user/quickstart.html
The contents of
I get the following problem:
nmpy.py
following exactly given the code in the numpy tutorial - https://docs.scipy.org/doc/numpy/user/quickstart.html
The contents of
nmpy.py
are the following:import numpy as np a = np.array([2,3,4])When I run the script
python nmpy.py
I get the following problem:
Error:Traceback (most recent call last):
File "nmpy.py", line 1, in <module>
import numpy as np
File "/home/v/numpy.py", line 2, in <module>
AttributeError: 'module' object has no attribute 'array'
What is wrong?