kivy + buildozer环境搭建
作者:互联网
目的
想要用python开发app,需要搭建一个python代码变成apk安装包的环境。系统环境是ubuntu20
1.安装kivy
sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python3-kivy
sudo apt-get install kivy-examples
2.安装buildozer
pip install -i https://pypi.doubanio.com/simple/ buildozer
sudo apt update
sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
pip3 install --user --upgrade Cython==0.29.19 virtualenv # the --user should be removed if you do this in a venv
# add the following line at the end of your ~/.bashrc file
export PATH=$PATH:~/.local/bin/
pip install sh pexpect virtualenv pexpect --trusted-host mirrors.aliyun.com
3.验证
mkdir test
cd test
buildozer init
ls
出现buldozer.spec文件则视为搭建成功
标签:sudo,--,buildozer,apt,dev,install,kivy,搭建 来源: https://blog.csdn.net/weixin_45549104/article/details/117555951