Ubuntu下安裝kivy


參考:

  https://kivy.org/doc/stable/installation/installation-linux.html#ubuntu-kubuntu-xubuntu-lubuntu-saucy-and-above

  https://stackoverflow.com/questions/45476686/kivy-critical-app-unable-to-get-a-window-abort

 

step 1:

  sudo add-apt-repository ppa:kivy-team/kivy

step 2:

  sudo apt-get update

step 3:

  python2:sudo apt-get install python-kivy

  python3:sudo apt-get install python3-kivy

*step 4:

  sudo apt-get install kivy-examples

 

安裝后出現如下問題時,解決方法:sudo apt-get install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0

[CRITICAL] [App ] Unable to get a Window, abort.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM