I tried to install pyplot using 'pip install pyplot' in command prompt while it was installing by mistake i closed command prompt then again i am trying to install pyplot using the same command but it was not installing.Can anyone guide me how to install pyplotKindly find the error in this image
error rectification in installing pyplot
CodePudding user response:
pyplot is part of a matplotlib. In order to install pyplot you should install matplotlib
pip install matplotlib
So you can "import matplotlib.pyplot"
CodePudding user response:
You can go to https://pypi.org/project/matplotlib to see and install the version you want. Then you can import the pylot
from matplotlib import pyplot