相关文章推荐

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report

Bug summary

It seems that on Windows 10 OS the latest matplotlib fails to install due to dependencies missing.

Code for reproduction

From command line (assuming python.exe for 3.7 is on your PATH):

python -m pip install matplotlib==3.0.3

Actual outcome

Collecting matplotlib (from -r ./build/functional-test-requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/1e/20/2032ad99f0dfe0f60970941af36e8d0942d3713f442bb3df37ac35d67358/matplotlib-2.2.4.tar.gz (37.0MB)
    Complete output from command python setup.py egg_info:
    ============================================================================
    Edit setup.cfg to change the build options
    BUILDING MATPLOTLIB
                matplotlib: yes [2.2.4]
                    python: yes [2.7.14 (v2.7.14:84471935ed, Sep 16 2017,
                            20:25:58) [MSC v.1500 64 bit (AMD64)]]
                  platform: yes [win32]
    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.16.2]
          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 /
                     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\vssadm~1\appdata\local\temp\pip-install-lkfxm9\matplotlib\

Expected outcome

Matplotlib is installed without incident.

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.0.3
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version: 2.7, 3.5, 3.6, 3.7
  • Jupyter version (if applicable): 1.0.0
  • Other libraries:
  • See our extension's CI output for more detail if you wish here.

    @d3r3kk can you confirm that this is woking now? The windows wheels are listed at https://pypi.org/project/matplotlib/#files

    I am going to close, but please ping to have reopened if it is not fixed.

     
    推荐文章