zm2018
V2EX  ›  问与答

pip3 install kivy 遇到的问题

  •  
  •   zm2018 · Jan 1, 2018 · 2223 views
    This topic created in 3079 days ago, the information mentioned may be changed or developed.
    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/
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3349 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    ♥ Do have faith in what you're doing.