In Ubuntu 16.04 I am able to install almost every python package and library using pip except for matplotlib.
I use this command to install matplotlib pip install matplotlib
This gives the error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-z5w80J/matplotlib/
But I don't obsereve this error while installing any other python package and I have no clue of why this error comes. Please help as I need to use matplotlib library.