Reputation: 11
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?
Upvotes: 0
Views: 356
Reputation: 87371
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
.
Upvotes: 1