matplotlib.pyplot pip code example Example 1: python pip install matplotlib pip install matplotlib Example 2: matplotlib 3.0.3 wheel file pip install matplotlib==3.0.3