无法在 cygwin 中安装 matplotlib(freetype 问题)

Ale*_*nko 4 windows cygwin 64-bit pip matplotlib

在我的 cygwin 环境中拥有 matplotlib 会非常好。我有 64 位 Windows 8 和 64 位 cygwin。

当我输入:

pip install matplotlib
Run Code Online (Sandbox Code Playgroud)

我收到以下错误消息:

 * The following required packages can not be built:
 * freetype
Run Code Online (Sandbox Code Playgroud)

根据 apt-cyg 我已经安装了以下软件包:

Searching for installed packages matching freetype: 
cygwin32-freetype2
freetype2-debuginfo
libfreetype-devel
libfreetype-doc
libfreetype6
Run Code Online (Sandbox Code Playgroud)

它还需要什么?如何正确安装 freetype 和 matplotlib?

小智 9

我在 Windows 7 64 位上遇到了同样的问题;我通过安装 Cygwin 包pkg-configlibX11-devel在输入之前解决了它easy_install matplotlib==1.1.1(1.3.1 版本在我的机器上有错误,因此是 1.1.1)。