首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在PyCharm、windows上安装Kivy时出现问题

在PyCharm、windows上安装Kivy时出现问题
EN

Stack Overflow用户
提问于 2020-11-14 14:56:47
回答 1查看 398关注 0票数 1

我正试图在Pycharm上安装Kivy软件包,由于某种原因,它给了我一个错误。注意,它不是来自pip,它适用于其他包,并且它是更新的。我寻求帮助的原因是因为我不理解翻译的命令和错误,所以我希望得到一些帮助。谢谢,我很感激我能得到的所有帮助:)

我使用的逗号是->。

这是给定的错误。

代码语言:javascript
复制
ERROR: Command errored out with exit status 1:
     command: 'c:\users\frank\pycharmprojects\python1\venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Frank\\AppData\\Lo
cal\\Temp\\pip-install-vr4dy_sq\\kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\Frank\\AppData\\Local\\Temp\\pip-install-vr4dy_sq\\kivy\\setup.py'"'"';f=getattr(token
ize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base
 'C:\Users\Frank\AppData\Local\Temp\pip-pip-egg-info-j7rvr3va'
         cwd: C:\Users\Frank\AppData\Local\Temp\pip-install-vr4dy_sq\kivy\
    Complete output (395 lines):
    WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported Con
tent-Type is text/html
      ERROR: Command errored out with exit status 1:
       command: 'c:\users\frank\pycharmprojects\python1\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Frank\\AppDat
a\\Local\\Temp\\pip-wheel-4p5fq9jt\\cython\\setup.py'"'"'; __file__='"'"'C:\\Users\\Frank\\AppData\\Local\\Temp\\pip-wheel-4p5fq9jt\\cython\\setup.py'"'"';f=getattr(
tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d
 'C:\Users\Frank\AppData\Local\Temp\pip-wheel-yf76rw9s'
           cwd: C:\Users\Frank\AppData\Local\Temp\pip-wheel-4p5fq9jt\cython\
      Complete output (321 lines):
      Unable to find pgen, not compiling formal grammar.
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.9
      copying cython.py -> build\lib.win-amd64-3.9
      creating build\lib.win-amd64-3.9\Cython
      copying Cython\CodeWriter.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\Coverage.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\Debugging.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\Shadow.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\StringIOTree.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\TestUtils.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\Utils.py -> build\lib.win-amd64-3.9\Cython
      copying Cython\__init__.py -> build\lib.win-amd64-3.9\Cython
      creating build\lib.win-amd64-3.9\Cython\Build
      copying Cython\Build\BuildExecutable.py -> build\lib.win-amd64-3.9\Cython\Build
      copying Cython\Includes\cpython\exc.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\float.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\function.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\getargs.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\instance.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\int.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\iterator.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\list.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\long.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\longintrepr.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\mapping.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\mem.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\method.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\module.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\number.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\object.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\oldbuffer.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\pycapsule.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\pylifecycle.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\pystate.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\pythread.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\ref.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\sequence.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\set.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\slice.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\string.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\tuple.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\type.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\unicode.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\version.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\weakref.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      copying Cython\Includes\cpython\__init__.pxd -> build\lib.win-amd64-3.9\Cython\Includes\cpython
      creating build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_bool.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_buffer.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_bytes.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_cobject.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_complex.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_dict.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_exc.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_float.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_function.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_getargs.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_instance.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_int.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_iterator.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_list.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_long.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_mapping.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_mem.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_method.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_module.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_number.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_object.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_oldbuffer.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_pycapsule.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_ref.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_sequence.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_set.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_string.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_tuple.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_type.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_unicode.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_version.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\python_weakref.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\stdio.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\stdlib.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      copying Cython\Includes\Deprecated\stl.pxd -> build\lib.win-amd64-3.9\Cython\Includes\Deprecated
      creating build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\errno.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\float.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\limits.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\locale.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\math.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\setjmp.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\signal.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\stddef.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\stdint.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\stdio.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\stdlib.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\string.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\time.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      copying Cython\Includes\libc\__init__.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libc
      creating build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\algorithm.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\cast.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\complex.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\deque.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\forward_list.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\functional.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\iterator.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\limits.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\list.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\map.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\memory.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\pair.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\queue.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\set.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\stack.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\string.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\typeindex.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\typeinfo.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\unordered_map.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\unordered_set.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\utility.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\vector.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      copying Cython\Includes\libcpp\__init__.pxd -> build\lib.win-amd64-3.9\Cython\Includes\libcpp
      creating build\lib.win-amd64-3.9\Cython\Includes\numpy
      copying Cython\Includes\numpy\math.pxd -> build\lib.win-amd64-3.9\Cython\Includes\numpy
      copying Cython\Includes\numpy\__init__.pxd -> build\lib.win-amd64-3.9\Cython\Includes\numpy
      creating build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\dlfcn.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\fcntl.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\ioctl.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\mman.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\resource.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\select.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\signal.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\stat.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\stdio.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\stdlib.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\strings.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\time.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\types.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\unistd.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\wait.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Includes\posix\__init__.pxd -> build\lib.win-amd64-3.9\Cython\Includes\posix
      copying Cython\Compiler\Code.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Compiler\FlowControl.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Compiler\ParseTreeTransforms.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Compiler\Parsing.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Compiler\Scanning.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Compiler\Visitor.pxd -> build\lib.win-amd64-3.9\Cython\Compiler
      copying Cython\Runtime\refnanny.pyx -> build\lib.win-amd64-3.9\Cython\Runtime
      copying Cython\Debugger\Tests\codefile -> build\lib.win-amd64-3.9\Cython\Debugger\Tests
      copying Cython\Debugger\Tests\cfuncs.c -> build\lib.win-amd64-3.9\Cython\Debugger\Tests
      copying Cython\Plex\Actions.pxd -> build\lib.win-amd64-3.9\Cython\Plex
      copying Cython\Plex\Scanners.pxd -> build\lib.win-amd64-3.9\Cython\Plex
      copying Cython\Utility\CConvert.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CpdefEnums.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CppConvert.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\MemoryView.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\TestCythonScope.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\TestCyUtilityLoader.pyx -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\AsyncGen.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Buffer.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Builtins.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Capsule.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CMath.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CommonStructures.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Complex.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Coroutine.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CythonFunction.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Embed.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Exceptions.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\ExtensionTypes.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\FunctionArguments.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\ImportExport.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\MemoryView_C.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\ModuleSetupCode.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\ObjectHandling.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Optimize.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Overflow.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Printing.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\Profile.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\StringTools.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\TestUtilityLoader.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\TypeConversion.c -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\arrayarray.h -> build\lib.win-amd64-3.9\Cython\Utility
      copying Cython\Utility\CppSupport.cpp -> build\lib.win-amd64-3.9\Cython\Utility
      running build_ext
      building 'Cython.Plex.Scanners' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      ----------------------------------------
      ERROR: Failed building wheel for cython
    ERROR: Failed to build one or more wheels
     Traceback (most recent call last):
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\installer.py", line 126, in fetch_build_egg
         subprocess.check_call(cmd)
       File "C:\Users\Frank\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
         raise CalledProcessError(retcode, cmd)
     subprocess.CalledProcessError: Command '['c:\\users\\frank\\pycharmprojects\\python1\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'w
heel', '--no-deps', '-w', 'C:\\Users\\Frank\\AppData\\Local\\Temp\\tmp9en8uo5g', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip
', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
    
     The above exception was the direct cause of the following exception:
    
     Traceback (most recent call last):
       File "<string>", line 1, in <module>
       File "C:\Users\Frank\AppData\Local\Temp\pip-install-vr4dy_sq\kivy\setup.py", line 1073, in <module>
         setup(
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\__init__.py", line 152, in setup
         _install_setup_requires(attrs)
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
         dist.fetch_build_eggs(dist.setup_requires)
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\dist.py", line 673, in fetch_build_eggs
         resolved_dists = pkg_resources.working_set.resolve(
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\pkg_resources\__init__.py", line 764, in resolve
         dist = best[req.key] = env.best_match(
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\pkg_resources\__init__.py", line 1049, in best_match
         return self.obtain(req, installer)
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\pkg_resources\__init__.py", line 1061, in obtain
         return installer(requirement)
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\dist.py", line 732, in fetch_build_egg
         return fetch_build_egg(self, req)
       File "c:\users\frank\pycharmprojects\python1\venv\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
         raise DistutilsError(str(e)) from e
     distutils.errors.DistutilsError: Command '['c:\\users\\frank\\pycharmprojects\\python1\\venv\\scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check',
'wheel', '--no-deps', '-w', 'C:\\Users\\Frank\\AppData\\Local\\Temp\\tmp9en8uo5g', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.z
ip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
    Using setuptools
    User distribution detected, avoid portable command.
    Using this graphics system: OpenGL
    WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
    
    b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
    
    WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
    
    b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
    
    WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
    
    b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
    
    ERROR: Dependency for context.pyx not resolved: config.pxi
    ERROR: Dependency for compiler.pyx not resolved: config.pxi
    ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
    ERROR: Dependency for fbo.pyx not resolved: config.pxi
    ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
    ERROR: Dependency for instructions.pyx not resolved: config.pxi
    ERROR: Dependency for opengl.pyx not resolved: config.pxi
    ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
    ERROR: Dependency for shader.pyx not resolved: config.pxi
    ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
    ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
    ERROR: Dependency for texture.pyx not resolved: config.pxi
    ERROR: Dependency for vbo.pyx not resolved: config.pxi
    ERROR: Dependency for vertex.pyx not resolved: config.pxi
    ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
    ERROR: Dependency for cgl.pyx not resolved: config.pxi
    ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
    ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
    ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
    ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
    ERROR: Dependency for svg.pyx not resolved: config.pxi
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-11-14 15:26:47

下面是我安装kivy的经验:

  • 确保您不使用python版本3.9
  • pip安装kivy -不工作

使用Virtualenv和python 3.7创建新项目(当然,除了3.9版本外,其他版本也可以工作)

然后,如果还不存在,只需在项目的根内创建requirements.txt文件,并包含kivy。

Pycharm自动询问是否要安装需求。

最后,验证

代码语言:javascript
复制
import kivy
print(kivy.__version__)

产出:

代码语言:javascript
复制
C:\Users\lww\PycharmProjects\kivyproject\venv\Scripts\python.exe C:/Users/lww/PycharmProjects/kivyproject/ver.py
[INFO   ] [Logger      ] Record log in C:\Users\lww\.kivy\logs\kivy_20-11-14_47.txt
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "C:\Users\lww\PycharmProjects\kivyproject\venv\lib\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "C:\Users\lww\PycharmProjects\kivyproject\venv\Scripts\python.exe"

Process finished with exit code 0
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64835179

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档