Cannot run jupyter notebook in Ubuntu

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 installed jupyter notebook using:



sudo pip3 install jupyter


It seemed to work but I got the error:



The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag


When I run it:



jupyter notebook


I get the error:



Error executing Jupyter command 'notebook': [Errno 8] Exec format error









share|improve this question



















  • 1




    The error about caching is a non-issue. That's just how pip works. Google it for more details.
    – wjandrea
    Feb 17 at 16:49










  • What stoppping me is the second error, any idea how to get jupyter notebook to work?
    – MCG Code
    Feb 18 at 7:10














up vote
0
down vote

favorite














I have installed jupyter notebook using:



sudo pip3 install jupyter


It seemed to work but I got the error:



The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag


When I run it:



jupyter notebook


I get the error:



Error executing Jupyter command 'notebook': [Errno 8] Exec format error









share|improve this question



















  • 1




    The error about caching is a non-issue. That's just how pip works. Google it for more details.
    – wjandrea
    Feb 17 at 16:49










  • What stoppping me is the second error, any idea how to get jupyter notebook to work?
    – MCG Code
    Feb 18 at 7:10












up vote
0
down vote

favorite









up vote
0
down vote

favorite













I have installed jupyter notebook using:



sudo pip3 install jupyter


It seemed to work but I got the error:



The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag


When I run it:



jupyter notebook


I get the error:



Error executing Jupyter command 'notebook': [Errno 8] Exec format error









share|improve this question

















I have installed jupyter notebook using:



sudo pip3 install jupyter


It seemed to work but I got the error:



The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag


When I run it:



jupyter notebook


I get the error:



Error executing Jupyter command 'notebook': [Errno 8] Exec format error






command-line python jupyter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 19:47









wjandrea

7,24342256




7,24342256










asked Feb 17 at 16:41









MCG Code

11




11







  • 1




    The error about caching is a non-issue. That's just how pip works. Google it for more details.
    – wjandrea
    Feb 17 at 16:49










  • What stoppping me is the second error, any idea how to get jupyter notebook to work?
    – MCG Code
    Feb 18 at 7:10












  • 1




    The error about caching is a non-issue. That's just how pip works. Google it for more details.
    – wjandrea
    Feb 17 at 16:49










  • What stoppping me is the second error, any idea how to get jupyter notebook to work?
    – MCG Code
    Feb 18 at 7:10







1




1




The error about caching is a non-issue. That's just how pip works. Google it for more details.
– wjandrea
Feb 17 at 16:49




The error about caching is a non-issue. That's just how pip works. Google it for more details.
– wjandrea
Feb 17 at 16:49












What stoppping me is the second error, any idea how to get jupyter notebook to work?
– MCG Code
Feb 18 at 7:10




What stoppping me is the second error, any idea how to get jupyter notebook to work?
– MCG Code
Feb 18 at 7:10










2 Answers
2






active

oldest

votes

















up vote
1
down vote













I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):



sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter


ipython seemed to be the problem, hence removing it fixed the issue.



I'm now able to run jupyter notebook






share|improve this answer





























    up vote
    0
    down vote













    Have you tried to run it as root ?



    sudo jupyter notebook --allow-root


    or login as root and run the following command:



    jupyter notebook --allow-root





    share|improve this answer






















    • I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
      – MCG Code
      Feb 18 at 7:08










    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%2f1007116%2fcannot-run-jupyter-notebook-in-ubuntu%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):



    sudo apt-get remove ipython
    sudo apt-get purge ipython
    sudo apt-get autoremove
    pip install jupyter


    ipython seemed to be the problem, hence removing it fixed the issue.



    I'm now able to run jupyter notebook






    share|improve this answer


























      up vote
      1
      down vote













      I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):



      sudo apt-get remove ipython
      sudo apt-get purge ipython
      sudo apt-get autoremove
      pip install jupyter


      ipython seemed to be the problem, hence removing it fixed the issue.



      I'm now able to run jupyter notebook






      share|improve this answer
























        up vote
        1
        down vote










        up vote
        1
        down vote









        I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):



        sudo apt-get remove ipython
        sudo apt-get purge ipython
        sudo apt-get autoremove
        pip install jupyter


        ipython seemed to be the problem, hence removing it fixed the issue.



        I'm now able to run jupyter notebook






        share|improve this answer














        I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):



        sudo apt-get remove ipython
        sudo apt-get purge ipython
        sudo apt-get autoremove
        pip install jupyter


        ipython seemed to be the problem, hence removing it fixed the issue.



        I'm now able to run jupyter notebook







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 17 at 17:26









        Stephen Rauch

        1,1546716




        1,1546716










        answered Jun 17 at 14:33









        akashah

        111




        111






















            up vote
            0
            down vote













            Have you tried to run it as root ?



            sudo jupyter notebook --allow-root


            or login as root and run the following command:



            jupyter notebook --allow-root





            share|improve this answer






















            • I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
              – MCG Code
              Feb 18 at 7:08














            up vote
            0
            down vote













            Have you tried to run it as root ?



            sudo jupyter notebook --allow-root


            or login as root and run the following command:



            jupyter notebook --allow-root





            share|improve this answer






















            • I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
              – MCG Code
              Feb 18 at 7:08












            up vote
            0
            down vote










            up vote
            0
            down vote









            Have you tried to run it as root ?



            sudo jupyter notebook --allow-root


            or login as root and run the following command:



            jupyter notebook --allow-root





            share|improve this answer














            Have you tried to run it as root ?



            sudo jupyter notebook --allow-root


            or login as root and run the following command:



            jupyter notebook --allow-root






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 17 at 19:48









            wjandrea

            7,24342256




            7,24342256










            answered Feb 17 at 16:52









            An0n

            81418




            81418











            • I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
              – MCG Code
              Feb 18 at 7:08
















            • I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
              – MCG Code
              Feb 18 at 7:08















            I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
            – MCG Code
            Feb 18 at 7:08




            I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
            – MCG Code
            Feb 18 at 7:08

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1007116%2fcannot-run-jupyter-notebook-in-ubuntu%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