本文介紹了需要幫助安裝 Kivy的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問(wèn)題描述
無(wú)論我嘗試什么,kivy 總是無(wú)法安裝.我可以安裝大多數(shù)其他軟件包,但不能安裝 kivy.我通過(guò)pycharm嘗試了,重新安裝python,在cmd提示符下嘗試了每個(gè)命令,它就是無(wú)法安裝.
No matter what i try, kivy always fails to install. I can install most other packages but not kivy. I tried it through pycharm, reinstalling python, and trying every command on cmd prompt, it just won't install.
這是我得到的錯(cuò)誤:
C:Program FilesPython 3.10.0>python -m pip install kivy==2.0.0
Collecting kivy==2.0.0
Using cached Kivy-2.0.0.tar.gz (23.7 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'C:Program FilesPython 3.10.0python.exe' 'C:Users
antaAppDataLocalTemppip-standalone-pip-12uaq80_\__env_pip__.zippip' install --ignore-installed --no-user --prefix 'C:Users
antaAppDataLocalTemppip-build-env-pi2ci1b2overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.24,<=0.29.21,!=0.27,!=0.27.2' 'kivy_deps.gstreamer_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew_dev~=0.3.0; sys_platform == "win32"' 'kivy_deps.gstreamer~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew~=0.3.0; sys_platform == "win32"'
cwd: None
Complete output (10 lines):
Collecting setuptools
Using cached setuptools-58.3.0-py3-none-any.whl (946 kB)
Collecting wheel
Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.21,>=0.24
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Collecting kivy_deps.gstreamer_dev~=0.3.1
Using cached kivy_deps.gstreamer_dev-0.3.2-cp310-cp310-win_amd64.whl (3.9 MB)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.3.1 (from versions: 0.4.2, 0.4.3)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.3.1
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/12/96/091ddacafb84dd18555a32d860dbfaf9c806147aa30c6f3c8b93cb7bab97/Kivy-2.0.0.tar.gz#sha256=d25e44eb44e43762b2fd0c5874e51954e0f1181fd9800d8a6756be6d084812d8 (from https://pypi.org/simple/kivy/). Command errored out with exit status 1: 'C:Program FilesPython 3.10.0python.exe' 'C:Users
antaAppDataLocalTemppip-standalone-pip-12uaq80_\__env_pip__.zippip' install --ignore-installed --no-user --prefix 'C:Users
antaAppDataLocalTemppip-build-env-pi2ci1b2overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cython>=0.24,<=0.29.21,!=0.27,!=0.27.2' 'kivy_deps.gstreamer_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2_dev~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew_dev~=0.3.0; sys_platform == "win32"' 'kivy_deps.gstreamer~=0.3.1; sys_platform == "win32"' 'kivy_deps.sdl2~=0.3.1; sys_platform == "win32"' 'kivy_deps.glew~=0.3.0; sys_platform == "win32"' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement kivy==2.0.0 (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1, 2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0)
ERROR: No matching distribution found for kivy==2.0.0
錯(cuò)誤結(jié)束
任何幫助將不勝感激!
推薦答案
在 他們的 PyPI 做了一些研究頁(yè)面和他們的GitHub
Kivy 似乎尚不支持 Python 3.10.(GitHub 問(wèn)題)
It looks like Kivy doesn't support Python 3.10 yet. (GitHub issue)
Kivy 目前支持 Python 3.6 - 3.9
Kivy currently supports Python 3.6 - 3.9
這篇關(guān)于需要幫助安裝 Kivy的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!