+ 1

How to use matplot lib on python in idle

Please help me I'm new I. Programming

18th Aug 2019, 4:26 PM
Mahfooz Khan
6 Réponses
+ 2
Matplotlib is not an inbuilt python library. If you try to import this library without installing it then the python interpreter will show you an error no module named matplotlib. To install this library, first you should have stable internet connection. Then open command prompt and type "pip install matplotlib". After installing it you can import this module anytime. I hope this will help you😊😊😊
18th Aug 2019, 5:41 PM
Divyanshu Singh
Divyanshu Singh - avatar
+ 2
Thanks Divyanshu bhai 🙏🏼🙏🏼🙏🏼🙏🏼
18th Aug 2019, 9:37 PM
Mahfooz Khan
+ 2
Welcome Mahfooz Khan 😊😊😊
19th Aug 2019, 1:15 AM
Divyanshu Singh
Divyanshu Singh - avatar
+ 1
But it's not working in idle
18th Aug 2019, 4:49 PM
Mahfooz Khan
+ 1
If you are using Windows, you might execute: import os os.system("py -m pip install matplotlib") It will install the package by command prompt. If you are using Linux instead, you might use just: import os os.system("pip install matplotlib")
18th Aug 2019, 8:39 PM
Seb TheS
Seb TheS - avatar
9th Jul 2022, 7:21 AM
Trenten Beram
Trenten Beram - avatar