how to install numpy in terminal code example Example 1: python pip install numpy pip install numpy Example 2: install numpy sudo pip3 install numpy