matplotlib - High Sierra 上的 Matplotlib 2.2.2 安装错误
问题描述
我正在运行 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)
解决方案
推荐阅读
- excel - COUNTIFS - 向下拖动,线性填充条件:
- angular - 属性 'map' 没有初始化程序,也没有在构造函数 @ViewChild 中明确分配
- javascript - TypeError:无法读取未定义的属性“绑定”,我不知道这意味着什么。反应js
- asp.net-core - ABP 和每个层次结构的表
- python - music21 :给定 midi 输入,输出正确拼写的音高和八度数
- google-apps-script - 为什么 Google 表格中的正则表达式公式会阻止 Google 表格脚本正常运行?
- flutter - 错误:找不到“Flutter/Flutter.h”文件#import
- node.js - 我的代码正在使用 mongoose 5.10.6,但不适用于最新版本
- sql-server - 导入的 SQL Server DB 上的日期格式已更改
- r - ggplot - 一个图上的双折线图和堆积条形图