Skip to content

Unable to install matplotlib 2.2.4 from pypi with Python 2.7.15 #13553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Closed
eamars opened this issue Mar 1, 2019 · 11 comments
Closed

Unable to install matplotlib 2.2.4 from pypi with Python 2.7.15 #13553

eamars opened this issue Mar 1, 2019 · 11 comments
Milestone

Comments

@eamars
Copy link

eamars commented Mar 1, 2019

Bug report

Bug summary

Matplotlib 2.2.4 cannot be installed on Windows with Python 2.7.15 from pypi.

Code for reproduction

pip install matplotlib==2.2.4

Actual outcome

(clean_env) C:\Users\rbao>pip install matplotlib==2.2.4
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Ple
ase upgrade your Python as Python 2.7 won't be maintained after that date. A fut
ure version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, http://nz-lnx-01/pypi
Collecting matplotlib==2.2.4
  Using cached https://files.pythonhosted.org/packages/1e/20/2032ad99f0dfe0f6097
0941af36e8d0942d3713f442bb3df37ac35d67358/matplotlib-2.2.4.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.4]
                    python: yes [2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018,
                            16:22:17) [MSC v.1500 32 bit (Intel)]]
                  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\rbao\app
data\local\temp\pip-install-5wv7sa\matplotlib\

Expected outcome

Matplotlib 2.2.3 can be installed in the same environment correctly.

Matplotlib version

  • Operating system: Windows 7 64bit
  • Matplotlib version: 2.2.4
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version: 2.7.15 32bit
  • Jupyter version (if applicable):
  • Other libraries:
@tacaswell
Copy link
Member

Because I forgot to upload the windows wheels 🐑 .

Try now.

@d3r3kk
Copy link

d3r3kk commented Mar 1, 2019

Thanks for fixing so fast!!!

@dstansby dstansby closed this as completed Mar 1, 2019
@dstansby
Copy link
Member

dstansby commented Mar 1, 2019

Looks like this is fixed, feel free to comment or re-open if it isn't!

@dstansby dstansby added this to the v2.2.4 milestone Mar 1, 2019
@dumbledad
Copy link

I'm getting this trying to install matplotlib-3.1.1 (using pip) on Windows with Python 3.8.0 64 bit

src/checkdep_freetype2.c(1): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory

@chocobearz
Copy link

I'm getting this trying to install matplotlib-3.1.1 (using pip) on Windows with Python 3.8.0 64 bit

I am also having this problem.

 src/checkdep_freetype2.c(1): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

@tfwittwer
Copy link

Me too, same error with Visual Studio 2017 Community Edition.

@timhoffm
Copy link
Member

timhoffm commented Nov 24, 2019

Matplotlib 3.1.2 is out, which contains wheels for Python 3.8. So no need to go through a full build process for a pip install anymore.

@LeMutique
Copy link

Hello, I'm opening back this issue as I have the same error, freetype & png are both not found. I'm using v3.0.3 with py 3.8.2

@tacaswell
Copy link
Member

We do not typically upload wheels for older releases of Matplotlib for versions of python that were not release when that version of Matplotlib was released. If you want to use an old Matplotlib with a new python you will have to build from source.

@LeMutique
Copy link

@tacaswell but 3.0.3 isn't last version? Sorry I'm quite confused, I just tried to install matplotlib from pip.

@tacaswell
Copy link
Member

No, the latest version is 3.2.1, see https://pypi.org/project/matplotlib/#history

Can you please move this discussion to https://discourse.matplotlib.org/c/community/install/13 ? Please make sure to include details like your OS, how you installed Python, and how you tried to install Matplotlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants