i installed numpy 1.26.3 but still not able to use np. method

82 views Asked by At

I installed NUMPY by using pip install NUMPY and it installed and then I'm still not able to use np. method . the NUMPY version is 1.26.3. the error in "np is not defined". can somebody pleas help me with installing NUMPY. Am I doing anything wrong?

1

There are 1 answers

2
pts On

Add import numpy as np to the beginning.of your .py file.

If doing so gives you an ImportError, then install numpy with python -m pip install numpy.