How to install matplotlib in python 3 with os windows

from this site

http://matplotlib.sourceforge.net/users/installing.html#installing-from-source

let us know this requirement is python 2.4 or later, but not python3.

Now I am working with python3 and I need the matplotlib graph form.

So how to solve it?

+4
source share
4 answers

Sorry, but this is not currently supported.
If you feel brave, you can try with the Py3k SVN branch , which reportedly works with a simple example. Remember that this has not happened in the last 8 months. Of course, you would be more than happy to contribute to porting to Python 3 if you could.

+2
source

You can try unofficial versions. Check out this site:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

+2
source

To install matplotlib on windows, first you need to install pip first, to install pip on windows, go to website

https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip

Download get-pip.py, trying to save it as a .py file, not a .txt. Then run it from the command line:

python get-pip.py 

If pip is already installed, install matplotlib by typing:

 python -mpip install -U pip python -mpip install -U matplotlib 
0
source

Looking at the documents by reference, the following is said:

Python (> = 2.7 or> = 3.4)

You can download a version of Python that will work with:

https://www.python.org/downloads/windows/

I would go with the latest version and 64-bit version, since some data analysis libraries did not run in the 32-bit version of Python.

The downloadable Python version will ship with pip , which you can use to install any libraries needed to do your job.

Make sure you set the environment variables if you want to run your programs from the command line or bash terminal.

I installed matplotlib via bash terminal using

 pip install matplotlib 

Let me know if this helps.

0
source

Source: https://habr.com/ru/post/1347075/


All Articles