- 根据官网安装所有的需要的模块
sudo apt-get install -y python-pip build-essential git ffmpeg libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev
(https://kivy.org/docs/installation/installation-linux.html#ubuntu-example)
此处我删去了对python的安装,是因为我的python虚拟环境已经ready
sudo apt-get install -y libgstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good
- 进入虚拟环境
source blablabla..........
pip install kivy
Ok, That is all!!!
网友评论