【发布时间】:2016-08-07 11:58:35
【问题描述】:
例如,我在使用 pip 安装模块时遇到问题
sudo -H pip3 install kivy
返回此错误
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b3rwh_e6/kivy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bev6v2mx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b3rwh_e6/kivy/
我对 python 和一般编程相当陌生,所以我可能做错了什么,值得一提的是我安装了 python2.7 和 python3.5,并安装了包 python3.5-dev 和 build-essential没修好。
编辑:构建日志: https://drive.google.com/file/d/0B5e3GD1lfCbUZ19LU3RENzY4MU0/view?usp=sharing
【问题讨论】:
-
发布完整的构建日志。
-
您是否阅读了构建日志?它清楚地表明缺少几个包。您是否尝试安装它们?
标签: python pip kivy python-module python-3.5