【发布时间】:2014-03-23 02:16:42
【问题描述】:
我已经安装了 Homebrew、Xcode 和所有必要的工具,但是当我在终端上执行这个命令时:brew install matplotlib 安装后出现如下错误
生成 1 个警告和 1 个错误。
错误:命令“clang”失败,退出状态为 1
正在清理... 命令 /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/var/folders/g7/nt2vgm9x0wv_r0pz6sm_18y00000gn/T/pip_build_Joshua/matplotlib/setup.py';exec(compile(getattr(tokenize, 'open', open)(文件)。 read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/g7/nt2vgm9x0wv_r0pz6sm_18y00000gn/T/pip -OxzEFW-record/install-record.txt --single-version-externally-managed --compile 失败,错误代码 1 在 /private/var/folders/g7/nt2vgm9x0wv_r0pz6sm_18y00000gn/T/pip_build_Joshua/matplotlib 在 /Users/Joshua/.pip/pip.log 中存储失败的调试日志
有谁知道如何解决这个问题? matplotlib 不适用于我的 python 脚本文件。
【问题讨论】:
标签: python macos python-2.7 matplotlib