how to setup numpy in python code example Example 1: import numpy python import numpy as np Example 2: install numpy pip install numpy