Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install matplotlib using pip [duplicate]

I just build a pc and I have been trying to install matplotlib on it using pip, but for some reason I keep getting this error

Command "python setup.py egg_info" failed with error code 1

I am on windows 10, using python 2.7 and I use

pip install matplotlib

Has this happened to anyone else, and what do I need to do to fix it? It also does this when I try to install pandas as well.

Thanks!

like image 693
AlpinistGuy Avatar asked Dec 23 '22 10:12

AlpinistGuy


1 Answers

You might not have installed setuptools correctly, or it may not be upgraded. Try this first

pip install --upgrade setuptools

And then, try with pip, or sometimes pip2/3 also might work.

pip install matplotlib
pip2 install matplotlib

On another note, you should really try to search your error before you post a question, since this has happened before, Python pip install gives "Command "python setup.py egg_info" failed with error code 1"

like image 180
ThunderFlash Avatar answered Dec 25 '22 22:12

ThunderFlash