install numpy in python script code example Example 1: import numpy python import numpy as np Example 2: install numpy py -m pip install numpy