zoukankan      html  css  js  c++  java
  • 181102 Windows下安装kivy(用python写APP)

    了解到Instgram,知乎等APP是用python写的。我也决定学习用python写APP。这里我们需要安装kivy。

    环境:win7,python3.6

    安装方式:DOS命令窗口

    注意事项:目前不支持python3.4及以上版本。如需安装3.5及以上版本,请通过安装文件手动安装。

    参考kivy网址安装(全英文):https://kivy.org/doc/stable/installation/installation-windows.html

    1. 确保升级pip 和wheel

    python -m pip install --upgrade pip wheel setuptools

    2. 安装依赖包

    python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
    python -m pip install kivy.deps.gstreamer
    python -m pip install kivy.deps.angle  \python3.5需要安装此项

    3. 安装kivy

    python -m pip install kivy

    4. 安装kivy示例

    python -m pip install kivy_examples

    5.  验证kivy安装

    在python开发环境中,编辑如下代码:

    1 from kivy.app import App
    2 from kivy.uix.button import Button
    3 
    4 class TestApp(App):
    5     def build(self):
    6         return Button(text="hello")
    7 
    8 TextApp().run()
    View Code
    
    
  • 相关阅读:
    组件定义
    序列化代码
    Views 代码 导包
    DRF 初始化
    Urls 代码
    怎么用sublime text 3搭建python 的ide
    C语言位运算
    ZOJ 1104 Leaps Tall Buildings
    UVa 10739 String to Palindrome
    ZOJ 3563 Alice's Sequence II
  • 原文地址:https://www.cnblogs.com/jakye/p/9897557.html
Copyright © 2011-2022 走看看