Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install Matplotlib in python 3.7

For install matplotlib in windows 10 64 bit machine get error showing

python setup.py egg_info" failed with error code 1 in C:\Users\Animus\AppData\Local\Temp\pip-build-urqbuxb_\unroll\

please help

like image 647
Zahid Uan Nabi Avatar asked Feb 16 '18 17:02

Zahid Uan Nabi


People also ask

Why can I not install matplotlib?

Since matplotlib doesn't come installed automatically with Python, you'll need to install it yourself. The easiest way to do so is by using pip, which is a package manager for Python. In most cases, this will fix the error.

How do I get matplotlib on Python 3?

If you are using the Python version that comes with your Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib. Fedora: sudo dnf install python3-matplotlib. Red Hat: sudo yum install python3-matplotlib.

Does matplotlib work with python3?

Matplotlib supports python 3. x as of version 1.2, released in January, 2013. To install it, have a look at the installation instructions. In general, call pip install matplotlib or use your preferred mechanism ( conda , homebrew , windows installer, system package manager, etc).


1 Answers

Forst of all make sure you have pip working. To install pip please follow the link Pip install and then update the setup And try:

python -mpip install -U pip
python -mpip install -U matplotlib  

and if does not work then use following

pip install --upgrade setuptools
like image 125
phyyyl Avatar answered Sep 23 '22 21:09

phyyyl