Python 開發安卓Android及IOS應用庫Kivy安裝嘗試

來源:互聯網
上載者:User

標籤:

Python 開發安卓Android及IOS應用庫Kivy安裝嘗試:

先來看看這貨可以用來製作什麼應用:

  1. Create a package for Windows
  2. Create a package for Android
  3. Creating packages for OS X
  4. Create a package for IOS

逆天的節奏啊,雖然600+頁的英文文檔,python3+還在on the way ,覺得這貨潛力無窮啊。

當然,缺點就是要安裝各種環境依賴,尤其是在win7平台下,估計會比較惱火,可以慢慢嘗試。

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已經安裝,開啟win+R開啟Command,確保python是在2.7下運行,然後按照一下步驟操作。另,建議建立虛擬環境進行開發,好處就不贅述;用python2.7的原因是在產生安卓APP的時候,暫且不支援高版本的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):(安裝環境依賴:gstreamer這貨大約90M,主要是用來調用網路攝影機,視頻等裝置或播放,遇到了想裝再說,畢竟現階段處於試水階段) 
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的擴充是一個思路,也可以用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,會出現3條友好的warning,看看即可) NoteI(注意)If you encounter any permission denied errors, try opening the Command prompt as administrator and trying again.(如果中途安裝出現了什麼么蛾子,建議切換至管理員權限,在進行以上操作,PS本人安裝沒有問題,人品還行!)  

Python 開發安卓Android及IOS應用庫Kivy安裝嘗試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.