install numpy for python 3.9 code example Example 1: install numpy py -m pip install numpy Example 2: install numpy pip install numpy