

If the chart is not displayed or if you get the following error UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)īuilding wheels for collected packages: RPi.GPIOīuilding wheel for RPi.GPIO (setup.py).
#VISUAL STUDIO CODE PYTHON INSTALL#
Theįollowing command installs matplotlib: sudo apt install python3-matplotlibĬreate and run the following Python script: import matplotlib.pyplot as plt If you work with virtual environments, do not forget to activate your environmentīefore installing matplotlib, otherwise it will be installed system wide.
