Import Numpy in python : In this tutorial, we are going to explain the importing and installation of numpy in python programming language. Basically, numpy is the fundamental package for scientific computing with python language. The n-dimensional array objects and the things are contained in the numpy package. If import numpy used then sub modules and functions in numpy module can be accessed in numpy. If we use the numpy as np then the name space will be created. If we use numpy import* then functions will be loaded into the local name-space. The numpy is fundamental package for the computing contains arrays and functions.
To install the numpy library we use the anaconda, the use of anaconda comes with the libraries as numpy, scikit, etc.
conda install –c anaconda numpy
Then in the Jupiter notebook,
import sys
!conda install –yes==prefix {sys.prefix} numpy
The command used to import numpy is as,
import numpy as np
The code will rename the numpy name space to np.
It permits to prefix Numpy function and the attributes with”np” instead of the “numpy”.
To check the version of numpy that is installed is,
Print(np._version_)
Output:-
1.18
Step1:-