Rakesh
Rakesh

Reputation: 79

pip matplotlib module installation error windows 64 bit python

'Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\Rakesh>pip isntall matplotlib ERROR: unknown command "isntall" - maybe you meant "install"

C:\Users\Rakesh>pip install matplotlib Collecting matplotlib Using cached matplotlib-2.2.2.tar.gz Complete output from command python setup.py egg_info: ============================================================================ Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.2]
                python: yes [3.7.0b3 (v3.7.0b3:4e7efa9c6f, Mar 29 2018,
                        18:42:04) [MSC v.1913 64 bit (AMD64)]]
              platform: yes [win32]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [not found. pip may install it below.]
      install_requires: yes [handled by setuptools]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype
                        (freetype2\ft2build.h) could not be found.  You may
                        need to install the development package.]
                   png: no  [The C/C++ header for png (png.h) could not be
                        found.  You may need to install the development
                        package.]
                 qhull: yes [pkg-config information for 'libqhull' could not
                        be found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: no  [skipping due to configuration]
        toolkits_tests: no  [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: no  [Requires pygobject to be installed.]
             gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                gtkagg: no  [Requires pygtk]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                        Tk]
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: no  [cairocffi or pycairo not found]
             windowing: yes [installing]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: no
                 latex: no
               pdftops: no

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

============================================================================
                        * The following required packages can not be built:
                        * freetype, png
                        * Please check http://gnuwin32.sourceforge.net/packa
                        * ges/freetype.htm for instructions to install
                        * freetype
                        * Please check http://gnuwin32.sourceforge.net/packa
                        * ges/libpng.htm for instructions to install png

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Rakesh\AppData\Local\Temp\pip-build-9bxd88gw\matplotlib\

C:\Users\Rakesh>Command "python setup.py egg_info" failed with error code 1'

i tried installing using pip install matplotlib. it downloaded the module at the end it got this message. is there anyway to directly download and extract? im getting this error message at the end. what should i do?

Upvotes: 4

Views: 6231

Answers (4)

Kohn1001
Kohn1001

Reputation: 3901

Got the same issues with Python 3.7 and 3.6.5 and laters...

Actually even when I solved the above I had other issues to install python-crfsuite and Tensorflow:

Got:

error: invalid argument '-std=c99' not allowed with 'C++/ObjC++' 

The only thing that worked for me was to run with Python 3.6.4

Go to here to install 3.6.4 and try again.

Or do it with Conda/Anaconda here

If you are facing issues with pkgs that you had on Python3.7 and you have mac try solving it with:

python location on mac osx

Upvotes: 0

jcgiret
jcgiret

Reputation: 758

Install Anaconda. To do so, download https://repo.continuum.io/archive/Anaconda3-5.1.0-Windows-x86_64.exe and install it.

Then, you can install matplotlib using the Anaconda Navigator or using the following command line from the shell:

conda install matplotlib

I advise you to work with Anaconda (or something equivalent). It ships pre-built packages, and its very convenient in a Windows environment where building some packages (numpy, scipy, ...) can be very difficult.

Upvotes: 0

Arman Omidi
Arman Omidi

Reputation: 144

some packages like matplotlib will be easier to install from this URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/ the better way is to install anaconda from the URL below: https://www.anaconda.com/download/

Upvotes: 0

nicholas.reichel
nicholas.reichel

Reputation: 2270

Quickest way I solve any issue with pip installs on windows is use these precompiled packages.

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

Upvotes: 2

Related Questions