In today’s video we will create a simple graph by using the Matplotlib library for Python. We will install Matplotlib and run a simple program that builds a graph in VS Code (Visual Studio Code). The Matplotlib Python library is commonly used for data science, computer science, and mathematics courses. If you get the error: ModuleNotFoundError: No module named 'matplotlib', then you must install the Matplotlib library.
Steps to Install:
1. Make sure you have at least Python version 3.4 and above installed. To check what Python version you have installed, open your terminal and type the command python3 --version.
2. Next, visit matplotlib.org, click on installation, and copy the second command: python -m pip install -U matplotlib
3. Paste the command into the terminal. If this command doesn’t work change to: python3 -m pip install -U matplotlib
4. Once installed you can run the python program by typing: python3 nameofprogram.py
Get a free stock when you open a free account on Robinhood (up to $216.28)!
https://join.robinhood.com/nicholm12649
Sur cette page du site, vous pouvez voir la vidéo en ligne How to Install Matplotlib in Python and Run in Visual Studio Code durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Wizard 03 avril 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 161,234 fois et il a aimé 1.3 mille téléspectateurs. Bon visionnage!