2016-04-15 70 views
1

我在安装使用PIP模块的麻烦,例如误差一般在Ubuntu与PIP安装模块15.10

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-devbuild-essential没有修复它。

编辑:生成日志: https://drive.google.com/file/d/0B5e3GD1lfCbUZ19LU3RENzY4MU0/view?usp=sharing

+0

发布完整版本的日志。 – inclement

+0

您是否阅读过构建日志?它清楚地表明,有几个包丢失了。你有没有尝试安装它们? – MattDMo

回答

0

你有没有尝试安装

sudo apt-get install python-dev 

的python2.7?

从官方网站

https://kivy.org/docs/installation/installation-linux.html

为Python 2

sudo apt-get install python-kivy 

为Python 3

sudo apt-get install python3-kivy 
+0

它已经安装,我通常不使用python2.7通常我保留它,因为依赖关系 –

1

套餐,其中包括C扩展需要编译并因而可能需要两GCC和python-dev(在某些情况下gcc-C++)。

运行:

sudo apt-get install gcc python-dev 

到点子安装软件包之前。

+0

他们都已经安装:/ –