macabeus
macabeus

Reputation: 4582

Fails to install matplotlib using pip3 on FreeBSD

I always get the following error message

freebsd@paratudo:~/anythingCollector % sudo pip3 install matplotlib
Collecting matplotlib
  Using cached matplotlib-1.5.0.tar.gz
    Complete output from command python setup.py egg_info:
    IMPORTANT WARNING:
        pkg-config is not installed.
        matplotlib may not be able to find some of its dependencies
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.5.0]
                    python: yes [3.4.3 (default, Nov  5 2015, 01:26:40)  [GCC
                            4.2.1 Compatible FreeBSD Clang 3.4.1
                            (tags/RELEASE_34/dot1-final 208032)]]
                  platform: yes [freebsd10]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.10.1]
                  dateutil: yes [dateutil was not found. It is required for date
                            axis support. pip/easy_install may attempt to
                            install it after matplotlib.]
                      pytz: yes [using pytz version 2015.7]
                    cycler: yes [cycler was not found. pip will attempt to
                            install it after matplotlib.]
                   tornado: yes [using tornado version 4.3]
                 pyparsing: yes [using pyparsing version 2.0.6]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]
                       png: yes [version 1.6.18]
                     qhull: yes [pkg-config information for 'qhull' could not be
                            found. Using local copy.]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [nose 0.11.1 or later is required to run the
                            matplotlib test suite. "setup.py test" will
                            automatically download it. Install nose 0.11.1 or
                            later to run matplotlib.test() / using
                            unittest.mock]
            toolkits_tests: yes [nose 0.11.1 or later is required to run the
                            matplotlib test suite. "setup.py test" will
                            automatically download it. Install nose 0.11.1 or
                            later to run matplotlib.test() / using
                            unittest.mock]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt5agg: no  [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: no  [TKAgg requires Tkinter.]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                       agg: yes [installing]
                     cairo: no  [cairocffi or pycairo not found]
                 windowing: no  [Microsoft Windows only]

    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

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-74bls8kw/matplotlib

Two lines give me attention:

pkg-config is not installed.

But I can not install, and I do not know exactly what it is

freetype: no

Is already installed, as you can see in the log below, but the error persists

freebsd@paratudo:~/anythingCollector % sudo pkg install freetype
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed

How to solve this problem, to install matplotlib?

Upvotes: 2

Views: 1732

Answers (1)

macabeus
macabeus

Reputation: 4582

My friend help me to solve this problem:

pkg install pkgconf

I was searching for pkgconfig, but in the repository the name is pkgconf

Upvotes: 4

Related Questions