简体   繁体   English

如何安装kivy

[英]how to install kivy

I am currently on python-3.9 (I dont know whether it is supported by kivy if not please let me know how which version is supported by kivy) I bascially ran我目前使用的是 python-3.9(我不知道 kivy 是否支持它,如果不请让我知道 kivy 支持哪个版本)我基本上跑了

pip install kivy

and ran into errors并遇到错误在此处输入图片说明

and dont know what to know.并且不知道该知道什么。 I installed all dependencies for kivy needed and what should i do know??我安装了 kivy 所需的所有依赖项,我应该知道什么?

TQ质量保证

please read the instructions from the kivy documentation clearly, https://kivy.org/doc/stable/installation/installation-windows.html .请清楚地阅读 kivy 文档中的说明, https: //kivy.org/doc/stable/installation/installation-windows.html。 if you are using pip for installing.如果您使用 pip 进行安装。 please do read about the manual installation of dependencies.请阅读有关手动安装依赖项的信息。 I suggest you to use conda prompt (Anaconda Navigator) the first section of documentation or the command below will be enough我建议你使用 conda prompt (Anaconda Navigator) 文档的第一部分或者下面的命令就足够了

conda install kivy -c conda-forge

You can try with below instructions Installed on windows 10您可以尝试使用以下说明安装在 Windows 10 上

  1. python -m virtualenv kivy_venv python -m virtualenv kivy_venv
  2. kivy_venv\\Scripts\\activate kivy_venv\\脚本\\激活
  3. python -m pip install --upgrade pip wheel setuptools virtualenv python -m pip install --upgrade pip wheel setuptools virtualenv
  4. python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.3.1 kivy_deps.glew==0.3.0 python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.3.1 kivy_deps.glew==0.3.0
  5. python -m pip install kivy_deps.angle==0.3.0 python -m pip install kivy_deps.angle==0.3.0
  6. pip install pipwin 7.python -m pip install --upgrade pip wheel setuptools pip install pipwin 7.python -m pip install --upgrade pip wheel setuptools
  7. python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
  8. python -m pip install kivy.deps.gstreamer python -m pip install kivy.deps.gstreamer
  9. python -m pip install kivy.deps.angle python -m pip install kivy.deps.angle
  10. pip install pipwin pip 安装 pipwin
  11. pipwin install kivy==1.11.1 pipwin 安装 kivy==1.11.1

Try to run:尝试运行:

pip install pipwin
pipwin install kivy

Pipwin has unofficial packages compiled for Windows. Pipwin有为 Windows 编译的非官方软件包。

at this moment up to Python 3.7 is supported目前最多支持 Python 3.7

Kivy home page基维主页

I use Kivy 1.11 on Windows and Linux with Python 3.7我在 Windows 和 Linux 上使用 Kivy 1.11 和 Python 3.7

Kivy installation is pretty difficult so I don't recommend using the newer Python versions as there are relatively few changes above Python 3.7 Kivy 安装非常困难,所以我不建议使用较新的 Python 版本,因为 Python 3.7 以上的变化相对较少

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM