How to Install Matplotlib in Python and Run in Visual Studio Code

preview_player
Показать описание
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.
3. Paste the command into the terminal. If this command doesn’t work change to: python3 -m pip install -U matplotlib

Found this video helpful and want to buy me a coffee?
Рекомендации по теме
Комментарии
Автор

Thank U so much, Finally I get a permanent sollution after struggling 45 minutes in downloading matplotlib.

SatyamChaurasia-oc
Автор

Good job man. Keep it up. This video actually helped in getting started with MatPlotLib.

saikatmandal
Автор

life saver bruh. I was looking so many videos not a single one worked for me. But you saved my life. lol.Appriciate bruh..

ifaz
Автор

You saved me, thanks, great job teaching us how to do it :)

juakos
Автор

Thank you for this simple tuto. It helped me a lot.

elmaghnouji
Автор

How do you write something into the same directory? you do it at around 0:57 but what is the command to do it

samvandebeek
Автор

How can I add data I have within the same file to my graph? I've already installed Matplotlib but I'm not sure how to put the data I have in a textfile in my graph using visual studio code.

AliShah-hcts
Автор

nice it solved my great problem which is since months . Thanks

storm_brkr
Автор

man, i cant find anywhere, waht is the python sintax to make these terminal installs?

olagarto
Автор

this has got to be the coolest intro I've ever seen. very impressive!
which software did you use to make this amazing intro?

vickykumargupta
Автор

in my case, matplotlib doesn't run on vscode unless I use python version 3.7.0

mohamedselim
Автор

After installing this library, if I open a new file again do i want to install it to new file also

isururajapaksha
Автор

Please help, I've tried several times to install this but the vscode keeps getting errors

kristatrivoniayunista
Автор

Good job sir its really help full to me thankyou sir helping out

nutanbhoyar
Автор

IDK why it isn't plotting any graph for me. Can you help me?!?!?!

qasimplays
Автор

Thank you! The only tutorial that worked for me.

aloevera
Автор

@CodeWizard I installed matplotlib but when I add import matplotlib I get a yellow underline and when I hover over it it shows (module) matplotlib Import "matplotlib" could not be resolved from source pylance (reportMissingModuleSource)

linuxuser
Автор

my graph not showing for too much its just an inta

MF-chpm
Автор

Hi! I've installed the latest version of Python (3.10.2) and installed it. But when I go to the command prompt and type 'python --version it still says Python 3.8.5

Alan_Motta
Автор

Thank you! After being on the internet for 2 hours trying different resources I finally found you and you really saved my time and life.

alemarneryvillalobos