pip install matplotlib在Raspbian Jessie 4.4上失败

2024-10-01 22:25:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试在raspberry-pi上安装matplotlib,并干净地安装Raspbian-Jessie(编写本文时为4.4)。我正在尝试为python2.7安装matplotlib。在

我一直收到以下错误:

command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-HPuMoo/matplotlib/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l3s1dW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-HPuMoo/matplotlib

Storing debug log for failure in /home/pi/.pip/pip.log

使事情复杂化。。。当我安装其他软件包时(只是安装了没有问题的virtualenv)不会发生这种情况,但是当我尝试升级numpy时,会发生这种情况。在

此外,在处理Python的主发行版(/usr/bin/Python)或虚拟环境(/home/pi/Envs/test/bin/Python)时,也会发生此错误。然后,我在主发行版上使用pip1.5.6,在virtualenv上使用9.0.1。两者都失败了。:(

不知道为什么我会有问题。。。考虑到matplotlib的广泛使用(以及Jessie是如何加载python包的),您会认为没有问题。嗯


Tags: pipbuildbinmatplotlibusr错误pirecord

热门问题