Matplotlib 2.2.2在High Sierra上的安装错误

时间:2018-06-28 12:28:49

标签: matplotlib macos-high-sierra freetype python-3.7

我正在运行Mac OS 10.13.5,并努力在Python 3.7上安装Matplotlib,非常感谢您的帮助。

这是使用pip3 install matplotlib时出现的错误:

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.2]
                python: yes [3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018,
                        23:26:24)  [Clang 6.0 (clang-600.0.57)]]
              platform: yes [darwin]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.14.5]
      install_requires: yes [handled by setuptools]
                libagg: yes [Requires patches that have not been merged
                        upstream. 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.34]

但是我已经通过Homebrew安装并链接了freetype:

Ocean-Gypsys-MacBook-Pro:~ Aysegul$ more /usr/X11/lib/pkgconfig/freetype2.pc
prefix=/opt/X11
exec_prefix=/opt/X11
libdir=/opt/X11/lib
includedir=/opt/X11/include

Name: FreeType 2
URL: http://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 18.6.12
Requires:
Requires.private:
Libs: -L${libdir} -lfreetype
Libs.private: -lz -lbz2
Cflags: -I${includedir}/freetype2
/usr/X11/lib/pkgconfig/freetype2.pc (END)

0 个答案:

没有答案