How do I install kivy?












1















I was trying to install Kivy (by following the instructions here). I downloaded and installed all packages where the installation process went through without giving me any errors.



However, when later I enter below command;



sudo easy_install kivy


It looked like it was going to work but it ends with an error by displaying following lines, which I don't comprehend:



Detected compiler is unix
/tmp/easy_install-BtOA_u/Kivy-1.8.0/kivy/graphics/texture.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


I saw a similar question asked as;
Problem with kivy installation. However, this didn't work for me though the question suggests installing libgles-mesa-dev-lts-raring which I did as below;



sudo apt-get install libgles-mesa-dev-lts-raring 


which then gave below;



E: Unable to locate package libgles-mesa-dev-lts-raring 


(sorry for being so specific and perhaps obvious, but I'm in the early stage of learning my way around linux).



This user was running Ubuntu 12.04, and most other questions related to this I've seen came from people with a different release from mine, which has led me to believe that that is the reason why the suggestions to those didn't solve my problem.



I'm using Ubuntu 13.10










share|improve this question

























  • ... and where does that install the kivy examples?

    – user287081
    May 31 '14 at 9:12
















1















I was trying to install Kivy (by following the instructions here). I downloaded and installed all packages where the installation process went through without giving me any errors.



However, when later I enter below command;



sudo easy_install kivy


It looked like it was going to work but it ends with an error by displaying following lines, which I don't comprehend:



Detected compiler is unix
/tmp/easy_install-BtOA_u/Kivy-1.8.0/kivy/graphics/texture.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


I saw a similar question asked as;
Problem with kivy installation. However, this didn't work for me though the question suggests installing libgles-mesa-dev-lts-raring which I did as below;



sudo apt-get install libgles-mesa-dev-lts-raring 


which then gave below;



E: Unable to locate package libgles-mesa-dev-lts-raring 


(sorry for being so specific and perhaps obvious, but I'm in the early stage of learning my way around linux).



This user was running Ubuntu 12.04, and most other questions related to this I've seen came from people with a different release from mine, which has led me to believe that that is the reason why the suggestions to those didn't solve my problem.



I'm using Ubuntu 13.10










share|improve this question

























  • ... and where does that install the kivy examples?

    – user287081
    May 31 '14 at 9:12














1












1








1


1






I was trying to install Kivy (by following the instructions here). I downloaded and installed all packages where the installation process went through without giving me any errors.



However, when later I enter below command;



sudo easy_install kivy


It looked like it was going to work but it ends with an error by displaying following lines, which I don't comprehend:



Detected compiler is unix
/tmp/easy_install-BtOA_u/Kivy-1.8.0/kivy/graphics/texture.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


I saw a similar question asked as;
Problem with kivy installation. However, this didn't work for me though the question suggests installing libgles-mesa-dev-lts-raring which I did as below;



sudo apt-get install libgles-mesa-dev-lts-raring 


which then gave below;



E: Unable to locate package libgles-mesa-dev-lts-raring 


(sorry for being so specific and perhaps obvious, but I'm in the early stage of learning my way around linux).



This user was running Ubuntu 12.04, and most other questions related to this I've seen came from people with a different release from mine, which has led me to believe that that is the reason why the suggestions to those didn't solve my problem.



I'm using Ubuntu 13.10










share|improve this question
















I was trying to install Kivy (by following the instructions here). I downloaded and installed all packages where the installation process went through without giving me any errors.



However, when later I enter below command;



sudo easy_install kivy


It looked like it was going to work but it ends with an error by displaying following lines, which I don't comprehend:



Detected compiler is unix
/tmp/easy_install-BtOA_u/Kivy-1.8.0/kivy/graphics/texture.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


I saw a similar question asked as;
Problem with kivy installation. However, this didn't work for me though the question suggests installing libgles-mesa-dev-lts-raring which I did as below;



sudo apt-get install libgles-mesa-dev-lts-raring 


which then gave below;



E: Unable to locate package libgles-mesa-dev-lts-raring 


(sorry for being so specific and perhaps obvious, but I'm in the early stage of learning my way around linux).



This user was running Ubuntu 12.04, and most other questions related to this I've seen came from people with a different release from mine, which has led me to believe that that is the reason why the suggestions to those didn't solve my problem.



I'm using Ubuntu 13.10







software-installation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:24









Community

1




1










asked Feb 11 '14 at 4:56









aspasiaaspasia

612




612













  • ... and where does that install the kivy examples?

    – user287081
    May 31 '14 at 9:12



















  • ... and where does that install the kivy examples?

    – user287081
    May 31 '14 at 9:12

















... and where does that install the kivy examples?

– user287081
May 31 '14 at 9:12





... and where does that install the kivy examples?

– user287081
May 31 '14 at 9:12










3 Answers
3






active

oldest

votes


















5














Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,



sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python-kivy





share|improve this answer

































    2














    First add one of the PPA's -



    sudo add-apt-repository ppa:kivy-team/kivy - stable builds
    sudo add-apt-repository ppa:kivy-team/kivy-daily - nightly builds

    next,



    sudo apt-get update
    sudo apt-get install python-kivy


    The download will be approx. of 35 mb

    For optional examples,



    sudo apt-get install python-kivy-examples


    Thats all you need for installation of kivy on ubuntu.

    For more information on installation refer to this page






    share|improve this answer
























    • Can you also tell us how to access the examples?

      – Ufoguy
      Jul 18 '14 at 12:21






    • 1





      Examples are in /usr/share/kivy-examples

      – user313091
      Aug 6 '14 at 23:13











    • I see them in /usr/share/kivi-examples/ ...

      – Chris2048
      Apr 9 '16 at 14:45



















    0














    you can also go with git...with git you can use kivy with both python2.x or python3.x.
    first, install dependencies:

    if you are installing for "python3" then use "pip3"
    sudo pip install cython pygments docutils
    now add the repo form git
    git clone https://github.com/kivy/kivy
    cd kivy
    installation

    if you want kivy for "python3" this instead of python type "python3"
    python setup.py build
    sudo python setup.py install



    For more on installing kivy see the users guide.






    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f419270%2fhow-do-i-install-kivy%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,



      sudo add-apt-repository ppa:kivy-team/kivy
      sudo apt-get update
      sudo apt-get install python-kivy





      share|improve this answer






























        5














        Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,



        sudo add-apt-repository ppa:kivy-team/kivy
        sudo apt-get update
        sudo apt-get install python-kivy





        share|improve this answer




























          5












          5








          5







          Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,



          sudo add-apt-repository ppa:kivy-team/kivy
          sudo apt-get update
          sudo apt-get install python-kivy





          share|improve this answer















          Try the below commands on the terminal to install kivy on Ubuntu 13.10 and 14.04,



          sudo add-apt-repository ppa:kivy-team/kivy
          sudo apt-get update
          sudo apt-get install python-kivy






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 15 '14 at 11:57

























          answered Feb 11 '14 at 5:12









          Avinash RajAvinash Raj

          52.5k41170219




          52.5k41170219

























              2














              First add one of the PPA's -



              sudo add-apt-repository ppa:kivy-team/kivy - stable builds
              sudo add-apt-repository ppa:kivy-team/kivy-daily - nightly builds

              next,



              sudo apt-get update
              sudo apt-get install python-kivy


              The download will be approx. of 35 mb

              For optional examples,



              sudo apt-get install python-kivy-examples


              Thats all you need for installation of kivy on ubuntu.

              For more information on installation refer to this page






              share|improve this answer
























              • Can you also tell us how to access the examples?

                – Ufoguy
                Jul 18 '14 at 12:21






              • 1





                Examples are in /usr/share/kivy-examples

                – user313091
                Aug 6 '14 at 23:13











              • I see them in /usr/share/kivi-examples/ ...

                – Chris2048
                Apr 9 '16 at 14:45
















              2














              First add one of the PPA's -



              sudo add-apt-repository ppa:kivy-team/kivy - stable builds
              sudo add-apt-repository ppa:kivy-team/kivy-daily - nightly builds

              next,



              sudo apt-get update
              sudo apt-get install python-kivy


              The download will be approx. of 35 mb

              For optional examples,



              sudo apt-get install python-kivy-examples


              Thats all you need for installation of kivy on ubuntu.

              For more information on installation refer to this page






              share|improve this answer
























              • Can you also tell us how to access the examples?

                – Ufoguy
                Jul 18 '14 at 12:21






              • 1





                Examples are in /usr/share/kivy-examples

                – user313091
                Aug 6 '14 at 23:13











              • I see them in /usr/share/kivi-examples/ ...

                – Chris2048
                Apr 9 '16 at 14:45














              2












              2








              2







              First add one of the PPA's -



              sudo add-apt-repository ppa:kivy-team/kivy - stable builds
              sudo add-apt-repository ppa:kivy-team/kivy-daily - nightly builds

              next,



              sudo apt-get update
              sudo apt-get install python-kivy


              The download will be approx. of 35 mb

              For optional examples,



              sudo apt-get install python-kivy-examples


              Thats all you need for installation of kivy on ubuntu.

              For more information on installation refer to this page






              share|improve this answer













              First add one of the PPA's -



              sudo add-apt-repository ppa:kivy-team/kivy - stable builds
              sudo add-apt-repository ppa:kivy-team/kivy-daily - nightly builds

              next,



              sudo apt-get update
              sudo apt-get install python-kivy


              The download will be approx. of 35 mb

              For optional examples,



              sudo apt-get install python-kivy-examples


              Thats all you need for installation of kivy on ubuntu.

              For more information on installation refer to this page







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 29 '14 at 13:26









              Anurag-SharmaAnurag-Sharma

              13617




              13617













              • Can you also tell us how to access the examples?

                – Ufoguy
                Jul 18 '14 at 12:21






              • 1





                Examples are in /usr/share/kivy-examples

                – user313091
                Aug 6 '14 at 23:13











              • I see them in /usr/share/kivi-examples/ ...

                – Chris2048
                Apr 9 '16 at 14:45



















              • Can you also tell us how to access the examples?

                – Ufoguy
                Jul 18 '14 at 12:21






              • 1





                Examples are in /usr/share/kivy-examples

                – user313091
                Aug 6 '14 at 23:13











              • I see them in /usr/share/kivi-examples/ ...

                – Chris2048
                Apr 9 '16 at 14:45

















              Can you also tell us how to access the examples?

              – Ufoguy
              Jul 18 '14 at 12:21





              Can you also tell us how to access the examples?

              – Ufoguy
              Jul 18 '14 at 12:21




              1




              1





              Examples are in /usr/share/kivy-examples

              – user313091
              Aug 6 '14 at 23:13





              Examples are in /usr/share/kivy-examples

              – user313091
              Aug 6 '14 at 23:13













              I see them in /usr/share/kivi-examples/ ...

              – Chris2048
              Apr 9 '16 at 14:45





              I see them in /usr/share/kivi-examples/ ...

              – Chris2048
              Apr 9 '16 at 14:45











              0














              you can also go with git...with git you can use kivy with both python2.x or python3.x.
              first, install dependencies:

              if you are installing for "python3" then use "pip3"
              sudo pip install cython pygments docutils
              now add the repo form git
              git clone https://github.com/kivy/kivy
              cd kivy
              installation

              if you want kivy for "python3" this instead of python type "python3"
              python setup.py build
              sudo python setup.py install



              For more on installing kivy see the users guide.






              share|improve this answer






























                0














                you can also go with git...with git you can use kivy with both python2.x or python3.x.
                first, install dependencies:

                if you are installing for "python3" then use "pip3"
                sudo pip install cython pygments docutils
                now add the repo form git
                git clone https://github.com/kivy/kivy
                cd kivy
                installation

                if you want kivy for "python3" this instead of python type "python3"
                python setup.py build
                sudo python setup.py install



                For more on installing kivy see the users guide.






                share|improve this answer




























                  0












                  0








                  0







                  you can also go with git...with git you can use kivy with both python2.x or python3.x.
                  first, install dependencies:

                  if you are installing for "python3" then use "pip3"
                  sudo pip install cython pygments docutils
                  now add the repo form git
                  git clone https://github.com/kivy/kivy
                  cd kivy
                  installation

                  if you want kivy for "python3" this instead of python type "python3"
                  python setup.py build
                  sudo python setup.py install



                  For more on installing kivy see the users guide.






                  share|improve this answer















                  you can also go with git...with git you can use kivy with both python2.x or python3.x.
                  first, install dependencies:

                  if you are installing for "python3" then use "pip3"
                  sudo pip install cython pygments docutils
                  now add the repo form git
                  git clone https://github.com/kivy/kivy
                  cd kivy
                  installation

                  if you want kivy for "python3" this instead of python type "python3"
                  python setup.py build
                  sudo python setup.py install



                  For more on installing kivy see the users guide.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 25 at 13:56









                  Elder Geek

                  27.4k955130




                  27.4k955130










                  answered Feb 25 at 11:53









                  imtiyazimtiyaz

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f419270%2fhow-do-i-install-kivy%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Mouse cursor on multiple screens with different PPI

                      Agildo Ribeiro

                      Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”