-1

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

2 Answers2

1

pyplot is part of a matplotlib. In order to install pyplot you should install matplotlib

pip install matplotlib

So you can "import matplotlib.pyplot"

0

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
Dat Le
  • 11
  • 2