This might be a simple question, but I'm stuck: I want to use numpy with Python 2.6. I added the path where the numpy folder is located:
C: \ Python26 \ Lib \ site packages \
as well as the path to the numpy folder itself
C: \ Python26 \ Lib \ Site Packages \ NumPy
However, this error message appears
x=np.array([[7,8,5][3,5,7]],np.int32)
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
x=np.array([[7,8,5][3,5,7]],np.int32)
NameError: name 'np' is not defined
could you help me?
source
share