2017-09-04 5 views
1
kivy/graphics/svg.pyx:469:9: 'reload' already defined 
building 'kivy.graphics.svg' extension 
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -Ikivy/include -Ikivy/include -I/usr/include/python2.7 -c kivy/graphics/svg.c -o build/temp.linux- x86_64-2.7/kivy/graphics/svg.o 
kivy/graphics/svg.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 'x86_64-linux-gnu-gcc' failed with exit status 1 

私はkubyをubuntu 16.04にインストールしようとしています。 "python setup.py build_ext --inplace -f"を実行すると、上記のエラーが表示されます。エラーUbuntuでKivyをインストールする

+0

です。 –

答えて

0

IMHOはもっと簡単にapt-getまたはpipを使用しています。

0
pip install Cython #pip or pip3 
pip install Kivy 

EDIT:もちろん があなたのcythonのバージョンは何のgcc

0

をインストールしますか?それを0.24または0.25に更新してkivyを構築することができます。

pip install -U cython==0.25 
0

私はUbuntu 16.04 LTSでKivyを使用しており、以下のインストール手順を使用しています。 Kivy例はオプションです:

$ sudo add-apt-repository ppa:kivy-team/kivy 
$ sudo apt-get update 
$ sudo apt-get install python3-kivy 
$ sudo apt-get install python-kivy-examples 
$ sudo pip install --upgrade cython==0.26 
3

バージョンcythonあなたが間違っている可能性が高いです。 現在のバージョンのkivy(1.10.0)では、cython == 0.26で成功しました。あなたと同じエラーで0.27.1と0.27.3でインストールに失敗しました。あなたの関連アナコンダ環境でそう

、現在cythonアンインストール:cythonをインストール

pip uninstall cython==0.2x.x (あなたのインストールcythonの正しいバージョンを与える)

または

conda uninstall cython

を= = 0.26

pip install cython==0.26

その後

(LINUX64のアナコンダチャネルにおけるcythonの0.26バージョンがあるように思えません):pip install kivy

0

kivyバージョン1.10.0の場合、cythonでなければならない0.26

`os`が使用している言及は
関連する問題