python 安卓库_Python 开发安卓Android及IOS应用库Kivy安装尝试
標(biāo)簽:
Python 開發(fā)安卓Android及IOS應(yīng)用庫Kivy安裝嘗試:
先來看看這貨可以用來制作什么應(yīng)用:
逆天的節(jié)奏啊,雖然600+頁的英文文檔,python3+還在on the way ,覺得這貨潛力無窮啊。
當(dāng)然,缺點(diǎn)就是要安裝各種環(huán)境依賴,尤其是在win7平臺(tái)下,估計(jì)會(huì)比較惱火,可以慢慢嘗試。
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.
(首先你要確定Python已經(jīng)安裝,打開win+R打開Command,確保python是在2.7下運(yùn)行,然后按照一下步驟操作。另,建議建立虛擬環(huán)境進(jìn)行開發(fā),好處就不贅述;用python2.7的原因是在生成安卓APP的時(shí)候,暫且不支持高版本的python。)
Ensure you have the latest pip and wheel:(確保你安裝的是最新的pip和wheel)
python -m pip install --upgrade pip wheel setuptools
Install the dependencies (skip gstreamer (~90MB) if not needed, see Kivy’s dependencies):(安裝環(huán)境依賴:gstreamer這貨大約90M,主要是用來調(diào)用攝像頭,視頻等設(shè)備或播放,遇到了想裝再說,畢竟現(xiàn)階段處于試水階段)
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/
(趕腳這玩意安裝就跟Flask的擴(kuò)展是一個(gè)思路,也可以用requirements.txt吧)
Install kivy:
python -m pip install kivy
(安裝kivy)
That’s it. You should now be able to import kivy in python.(可以在python下嘗試一下能不能import,會(huì)出現(xiàn)3條友好的warning,看看即可)
NoteI(注意)
If you encounter any permission denied errors, try opening the Command prompt as administrator and trying again.
(如果中途安裝出現(xiàn)了什么幺蛾子,建議切換至管理員權(quán)限,在進(jìn)行以上操作,PS本人安裝沒有問題,人品還行!)
標(biāo)簽:
總結(jié)
以上是生活随笔為你收集整理的python 安卓库_Python 开发安卓Android及IOS应用库Kivy安装尝试的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux 命令 which where
- 下一篇: python论文排版格式_学位论文排版教