ModuleNotFoundError: No module named 'kivy' . How do I fix this error?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have Ubuntu 16.04.4. I installed Kivy from Kivy Official Site.
I followed all the steps correctly. In spite of doing all this, when I try to import kivy in python, it is giving this error: ModuleNotFoundError: No module named 'kivy' I'm getting this error in both the terminal and Anaconda. How can I fix this?



  1. which python
    /home/username/anaconda3/bin/python


  2. echo $PYTHONPATH
    This gave no output.


  3. dpkg -L python-kivy | grep kivy/__init__


/usr/lib/python2.7/dist-packages/kivy/init.py







share|improve this question






















  • Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
    – Panther
    May 26 at 19:16










  • @SebastianStark Check it out. I have edited the question.
    – Arvind Ramadurai
    May 27 at 5:48














up vote
0
down vote

favorite












I have Ubuntu 16.04.4. I installed Kivy from Kivy Official Site.
I followed all the steps correctly. In spite of doing all this, when I try to import kivy in python, it is giving this error: ModuleNotFoundError: No module named 'kivy' I'm getting this error in both the terminal and Anaconda. How can I fix this?



  1. which python
    /home/username/anaconda3/bin/python


  2. echo $PYTHONPATH
    This gave no output.


  3. dpkg -L python-kivy | grep kivy/__init__


/usr/lib/python2.7/dist-packages/kivy/init.py







share|improve this question






















  • Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
    – Panther
    May 26 at 19:16










  • @SebastianStark Check it out. I have edited the question.
    – Arvind Ramadurai
    May 27 at 5:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have Ubuntu 16.04.4. I installed Kivy from Kivy Official Site.
I followed all the steps correctly. In spite of doing all this, when I try to import kivy in python, it is giving this error: ModuleNotFoundError: No module named 'kivy' I'm getting this error in both the terminal and Anaconda. How can I fix this?



  1. which python
    /home/username/anaconda3/bin/python


  2. echo $PYTHONPATH
    This gave no output.


  3. dpkg -L python-kivy | grep kivy/__init__


/usr/lib/python2.7/dist-packages/kivy/init.py







share|improve this question














I have Ubuntu 16.04.4. I installed Kivy from Kivy Official Site.
I followed all the steps correctly. In spite of doing all this, when I try to import kivy in python, it is giving this error: ModuleNotFoundError: No module named 'kivy' I'm getting this error in both the terminal and Anaconda. How can I fix this?



  1. which python
    /home/username/anaconda3/bin/python


  2. echo $PYTHONPATH
    This gave no output.


  3. dpkg -L python-kivy | grep kivy/__init__


/usr/lib/python2.7/dist-packages/kivy/init.py









share|improve this question













share|improve this question




share|improve this question








edited May 27 at 5:58









karel

49.6k11105126




49.6k11105126










asked May 26 at 19:12









Arvind Ramadurai

11




11











  • Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
    – Panther
    May 26 at 19:16










  • @SebastianStark Check it out. I have edited the question.
    – Arvind Ramadurai
    May 27 at 5:48
















  • Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
    – Panther
    May 26 at 19:16










  • @SebastianStark Check it out. I have edited the question.
    – Arvind Ramadurai
    May 27 at 5:48















Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
– Panther
May 26 at 19:16




Did,you ask on the kivy mailing list / forums as this is outside the Ubuntu repositories?
– Panther
May 26 at 19:16












@SebastianStark Check it out. I have edited the question.
– Arvind Ramadurai
May 27 at 5:48




@SebastianStark Check it out. I have edited the question.
– Arvind Ramadurai
May 27 at 5:48










1 Answer
1






active

oldest

votes

















up vote
2
down vote













Short answer: Don't use anaconda if you don't know what you're doing.



Long answer: you are using a python installation (anaconda) which exists alongside the system python installation. If you install a system python package, or, in the case of kivy, a package that is made for the system python, it is probably not seen by anaconda.



In order to use it you have to either install the package the way anaconda wants it (beyond the scope of this site), or you have to start the system python interpreter, which is /usr/bin/python.



On the Kivy homepage you find instructions on how to install using virtual environments (https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment), I recommend this method if you are not using the standard system python installation.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1040673%2fmodulenotfounderror-no-module-named-kivy-how-do-i-fix-this-error%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    Short answer: Don't use anaconda if you don't know what you're doing.



    Long answer: you are using a python installation (anaconda) which exists alongside the system python installation. If you install a system python package, or, in the case of kivy, a package that is made for the system python, it is probably not seen by anaconda.



    In order to use it you have to either install the package the way anaconda wants it (beyond the scope of this site), or you have to start the system python interpreter, which is /usr/bin/python.



    On the Kivy homepage you find instructions on how to install using virtual environments (https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment), I recommend this method if you are not using the standard system python installation.






    share|improve this answer
























      up vote
      2
      down vote













      Short answer: Don't use anaconda if you don't know what you're doing.



      Long answer: you are using a python installation (anaconda) which exists alongside the system python installation. If you install a system python package, or, in the case of kivy, a package that is made for the system python, it is probably not seen by anaconda.



      In order to use it you have to either install the package the way anaconda wants it (beyond the scope of this site), or you have to start the system python interpreter, which is /usr/bin/python.



      On the Kivy homepage you find instructions on how to install using virtual environments (https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment), I recommend this method if you are not using the standard system python installation.






      share|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote









        Short answer: Don't use anaconda if you don't know what you're doing.



        Long answer: you are using a python installation (anaconda) which exists alongside the system python installation. If you install a system python package, or, in the case of kivy, a package that is made for the system python, it is probably not seen by anaconda.



        In order to use it you have to either install the package the way anaconda wants it (beyond the scope of this site), or you have to start the system python interpreter, which is /usr/bin/python.



        On the Kivy homepage you find instructions on how to install using virtual environments (https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment), I recommend this method if you are not using the standard system python installation.






        share|improve this answer












        Short answer: Don't use anaconda if you don't know what you're doing.



        Long answer: you are using a python installation (anaconda) which exists alongside the system python installation. If you install a system python package, or, in the case of kivy, a package that is made for the system python, it is probably not seen by anaconda.



        In order to use it you have to either install the package the way anaconda wants it (beyond the scope of this site), or you have to start the system python interpreter, which is /usr/bin/python.



        On the Kivy homepage you find instructions on how to install using virtual environments (https://kivy.org/docs/installation/installation-linux.html#installation-in-a-virtual-environment), I recommend this method if you are not using the standard system python installation.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 27 at 6:41









        Sebastian Stark

        4,603838




        4,603838






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040673%2fmodulenotfounderror-no-module-named-kivy-how-do-i-fix-this-error%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491