在Windows上按照Kivy
Posted ystwyfe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Windows上按照Kivy相关的知识,希望对你有一定的参考价值。
Installation
Now that python is installed, open the Command line and make sure python is available by typing python --version
. Then, do the following to install.
-
Ensure you have the latest pip and wheel:
python -m pip install --upgrade pip wheel setuptools
-
Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies):
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew python -m pip install kivy.deps.gstreamer
Note
If you encounter a MemoryError while installing, add after pip install an option –no-cache-dir.
For Python 3.5+, you can also use the angle backend instead of glew. This can be installed with:
python -m pip install kivy.deps.angle
-
Install kivy:
python -m pip install kivy
-
(Optionally) Install the kivy examples:
python -m pip install kivy_examples
The examples are installed in the share directory under the root directory where python is installed. eg. "E:Ancondasharekivy-examples"
安装中出现的问题:
Cannot uninstall ‘pywin32‘. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解放方法:
在Python->Lib->site-packages下搜索 “pywin32”,找到pywin32-*-*.egg-info文件,并删除即可。
以上是关于在Windows上按照Kivy的主要内容,如果未能解决你的问题,请参考以下文章
无法安装 Kivy(Windows 10,python 3.8)[重复]