Mehran Kaj
Mehran Kaj

Reputation: 11

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

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

Answers (1)

pts
pts

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

Related Questions