V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zm2018
V2EX  ›  问与答

pip3 install kivy 遇到的问题

  •  
  •   zm2018 · 2018-01-01 19:50:12 +08:00 · 1429 次点击
    这是一个创建于 2507 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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/
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5344 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:17 · PVG 15:17 · LAX 23:17 · JFK 02:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.