Not able to install matplotlib in mac

I am not able to install matplotlib in my mac (currently running mojave)
I have used the command pip3 install matplotlib .
I don’t know what is the problem ?

hi @anshushahi98
i am also a mac user
u are getting error during installation or in importing the library

during installation , when i run pip3 install matplotlib , it shows this 49%20PM
and it does not install matplotlib , i have also tried updating pip but nothing happens shows the same error .

Hi @anshushahi98
Library is installed successful ly it is only showing warning to upgrade pip

U can try pip also instead of pip3