2015-10-28 73 views
0

好吧,我真的很喜歡kivy的聲音,但安裝它證明是一個真正的痛苦,我已經安裝了它所要求的所有依賴關係,但我不斷收到此錯誤消息:試圖在fedora上安裝kivy

Error compiling Cython file: 
------------------------------------------------------------ 
... 
    cpdef release(self) 
    cpdef get_pixel_color(self, int wx, int wy) 

    cdef void create_fbo(self) 
    cdef void delete_fbo(self) 
    cdef void apply(self) 
       ^
------------------------------------------------------------ 

kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration 

Error compiling Cython file: 
------------------------------------------------------------ 
... 
    cdef void push_states(self, list names) except * 
    cdef void pop_state(self, str name) except * 
    cdef void pop_states(self, list names) except * 
    cdef void enter(self) except * 
    cdef void leave(self) except * 
    cdef void apply(self) except * 
       ^
------------------------------------------------------------ 

kivy/graphics/instructions.pxd:123:19: Previous declaration is here 
building 'kivy.graphics.vbo' extension 
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c /tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.c -o build/temp.linux-i686-2.7/tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.o 
/tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. 
#error Do not use this file, it is the result of a failed Cython compilation. 
^
error: command 'gcc' failed with exit status 1 

---------------------------------------- 

 

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

我不知道如何處理它這樣做會有人請幫助我。

非常感謝

克里斯

回答

1

我穿上它,我需要通過PIP安裝用Cython,該命令是:

sudo pip install -I Cython==0.21.2 

然後我能之後成功安裝kivy 。