pip3 install kivy 遇到的问题

2018-01-01 19:50:12 +08:00
 zm2018
Error compiling Cython file:
------------------------------------------------------------
...
end = time()
Logger.debug("Svg: Loaded {} in {:.2f}s".format(filename, end - start))
finally:
fd.close()

cdef void reload(self) except *:
^
------------------------------------------------------------

kivy/graphics/svg.pyx:469:9: Signature not compatible with previous declaration

Error compiling Cython file:
------------------------------------------------------------
...
cpdef flag_update(self, int do_parent=?, list _instrs=?)
ELSE:
cpdef flag_update(self, int do_parent=?)
cdef void flag_update_done(self)
cdef void set_parent(self, Instruction parent)
cdef void reload(self)
^
------------------------------------------------------------

kivy/graphics/instructions.pxd:36:20: Previous declaration is here
building 'kivy.graphics.svg' extension
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -arch x86_64 -I/private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/kivy/include -I/private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/kivy/include -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c /private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/kivy/graphics/svg.c -o build/temp.macosx-10.6-intel-3.6/private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/kivy/graphics/svg.o -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
/private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/kivy/graphics/svg.c:1:2: 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.
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-c3x1dmbf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/jp/cb5x_p2518l3k8vry32crltw0000gn/T/pip-build-foahkmaz/kivy/
1368 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/419187

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX