在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.

  1. Ensure you have the latest pip and wheel:

    python -m pip install --upgrade pip wheel setuptools 
  2. 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 
  3. Install kivy:

    python -m pip install kivy 
  4. (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:\Anconda\share\kivy-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文件,并删除即可。

 

转载于:https://www.cnblogs.com/ystwyfe/p/10056469.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值