gpt4 book ai didi

python - 无法使用 VirtualEnv 在 OSX 10.8.4 上安装 matplotlib

转载 作者:太空宇宙 更新时间:2023-11-03 12:48:57 24 4
gpt4 key购买 nike

我尝试了网络上可用的每个链接,但仍然出现以下错误:

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [1.4.x]
python: yes [2.7.5 (default, Jul 28 2013, 07:27:04) [GCC
4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]]
platform: yes [darwin]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.7.1]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
tornado: yes [tornado was not found. It is required for the
WebAgg backend. pip/easy_install may attempt to
install it after matplotlib.]
pyparsing: yes [pyparsing was not found. It is required for
mathtext support. pip/easy_install may attempt to
install it after matplotlib.]
pycxx: yes [Couldn't import. Using local copy.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [pkg-config information for 'freetype2' could
not be found.]
png: yes [pkg-config information for 'libpng' could not
be found. Using unknown version.]

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]

OPTIONAL BACKEND EXTENSIONS
macosx: yes [darwin]
qt4agg: no [PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [version 81008]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairo not found]
windowing: no [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no
============================================================================
* The following required packages can not be built:
* freetype

以下是我尝试过的事情:

我在我的本地 python 环境中成功安装了 numpyscipy。由于我无法安装 matplotlib,我决定切换到 virtualenv

链接如下:

每个选项都以上述问题结束。任何帮助都会很棒。

最佳答案

如果还没有安装brew与:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

然后做:

brew install freetype
brew install libpng

最后一行可能不需要,但只是为了确定。然后用 pip 再试一次。

编辑:我还建议您尝试 conda安装程序。

关于python - 无法使用 VirtualEnv 在 OSX 10.8.4 上安装 matplotlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18422746/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com