I'm using cygwin
in Windows to install matplotlib
, via pip
command. Command I used:
pip install matplotlib
Message was: "matplotlib successfully installed". I proceeded to run the script, but got the error:
ImportError: No module named matplotlib.pyplot
I then found this answer, saying I am supposed to use python -m pip install matplotlib
instead of the previous command.
However, after entering that command, following error shows:
/usr/bin/python: No module named pip
How come do I get this error? pip
does exist in my machine. How can I successfully access/install the matplotlib
module?