+ 1
How to use matplot lib on python in idle
Please help me I'm new I. Programming
6 Antworten
+ 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😊😊😊
+ 2
Thanks Divyanshu bhai
🙏🏼🙏🏼🙏🏼🙏🏼
+ 2
Welcome Mahfooz Khan 😊😊😊
+ 1
But it's not working in idle
+ 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")