You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python3.11安装Kivy遇kivy_deps.sdl2_dev依赖及Wheel兼容问题求助

Kivy安装失败问题求助

我按以下步骤安装Kivy:

python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
python -m pip install kivy

执行最后一条python -m pip install kivy时,控制台出现如下错误:

Collecting kivy
     Using cached Kivy-2.1.0.tar.gz (23.8 MB)
     Installing build dependencies ... error
     error: subprocess-exited-with-error

     × pip subprocess to install build dependencies did not run successfully.
     │ exit code: 1
     ╰─> [10 lines of output]
         Collecting setuptools
           Using cached setuptools-65.5.1-py3-none-any.whl (1.2 MB)
         Collecting wheel
           Using cached wheel-0.38.2-py3-none-any.whl (36 kB)
         Collecting cython!=0.27,!=0.27.2,<=0.29.28,>=0.24
           Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
         Collecting kivy_deps.gstreamer_dev~=0.3.3
           Using cached kivy_deps.gstreamer_dev-0.3.3-cp311-cp311-win_amd64.whl (3.9 MB)
         ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.4.5 (from versions: 0.5.1)
         ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.4.5
         [end of output]

     note: This error originates from a subprocess, and is likely not a problem with pip.
   error: subprocess-exited-with-error

   × pip subprocess to install build dependencies did not run successfully.
   │ exit code: 1
   ╰─> See above for output.

   note: This error originates from a subprocess, and is likely not a problem with pip.

我怀疑是Wheel缺失问题,尝试下载Kivy的Wheel文件安装,但执行命令后出现错误:

pip install Kivy-2.1.0-pp38-pypy38_pp73-win_amd64.whl
ERROR: Kivy-2.1.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

我的Python版本是3.11.0,下载的Wheel只支持到cp310版本。之前看到有用户称Kivy不支持Python3.10,但提问已经过去一年,不确定是否需要降级到Python3.10,求解决方案。

内容的提问来源于stack exchange,提问作者Hugo Bustamante

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 17:46:27