我正在尝试使用 pip 安装带有基础和示例的 Kivy 库,但安装失败并出现与子进程相关的错误

问题描述 投票:0回答:0
talha@DESKTOP-1L2UFDM MINGW64 /e/kivygui
$ python -m pip install "kivy\[base\]" kivy_examples
Collecting kivy\[base\]
   Using cached Kivy-2.1.0.tar.gz (23.8 MB)
   Installing build dependencies: started
   Installing build dependencies: finished with status '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-67.6.1-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 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, 0.6.0)
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 子进程安装构建依赖项未成功运行。 退出代码:1

见上文输出。

注意:此错误源自子进程,可能不是 pip 的问题。

我试图使用 gitbash 安装 kivy,但它反复显示此错误。我已将我的 pip 升级到最新版本并完成了其他所有操作,但它就在那里。

pip kivy version
© www.soinside.com 2019 - 2024. All rights reserved.