How to uninstall TensorFlow completely?











up vote
9
down vote

favorite
2












I accidentally installed TensorFlow for Ubuntu/Linux 64-bit, GPU enabled.
When I installed with Linux 64-bit CPU only, I am getting Segmentation fault while importing tensorflow from python console.










share|improve this question






















  • Did you try first importing numpy and then importing tensorflow?
    – Martin Thoma
    May 13 '16 at 21:10















up vote
9
down vote

favorite
2












I accidentally installed TensorFlow for Ubuntu/Linux 64-bit, GPU enabled.
When I installed with Linux 64-bit CPU only, I am getting Segmentation fault while importing tensorflow from python console.










share|improve this question






















  • Did you try first importing numpy and then importing tensorflow?
    – Martin Thoma
    May 13 '16 at 21:10













up vote
9
down vote

favorite
2









up vote
9
down vote

favorite
2






2





I accidentally installed TensorFlow for Ubuntu/Linux 64-bit, GPU enabled.
When I installed with Linux 64-bit CPU only, I am getting Segmentation fault while importing tensorflow from python console.










share|improve this question













I accidentally installed TensorFlow for Ubuntu/Linux 64-bit, GPU enabled.
When I installed with Linux 64-bit CPU only, I am getting Segmentation fault while importing tensorflow from python console.







14.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 27 '16 at 22:57









chandan

156116




156116












  • Did you try first importing numpy and then importing tensorflow?
    – Martin Thoma
    May 13 '16 at 21:10


















  • Did you try first importing numpy and then importing tensorflow?
    – Martin Thoma
    May 13 '16 at 21:10
















Did you try first importing numpy and then importing tensorflow?
– Martin Thoma
May 13 '16 at 21:10




Did you try first importing numpy and then importing tensorflow?
– Martin Thoma
May 13 '16 at 21:10










2 Answers
2






active

oldest

votes

















up vote
9
down vote













Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:



sudo pip show tensorflow


Uninstall using:



sudo pip uninstall protobuf
sudo pip uninstall tensorflow


Install it using:



sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl





share|improve this answer

















  • 5




    You shall not sudo pip.
    – runDOSrun
    May 27 '16 at 12:57






  • 1




    @runDOSrun why not?
    – Charlie Parker
    Jan 14 '17 at 0:22






  • 2




    why do you need protobuf to uninstall tensorflow?
    – Charlie Parker
    Jan 14 '17 at 0:23






  • 1




    Why protobuf???
    – SmallChess
    Jan 13 at 4:01










  • @PseudoAj Why ??
    – SmallChess
    Jan 13 at 4:01


















up vote
0
down vote













When running in conda env or any virtual env sudo doesn't work. So you can use:



python3 -m pip uninstall protobuf    
python3 -m pip uninstall tensorflow-gpu


python3 -m is safest way to ensure that you are using pip3 and not pip2.






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: 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%2f764032%2fhow-to-uninstall-tensorflow-completely%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    9
    down vote













    Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:



    sudo pip show tensorflow


    Uninstall using:



    sudo pip uninstall protobuf
    sudo pip uninstall tensorflow


    Install it using:



    sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl





    share|improve this answer

















    • 5




      You shall not sudo pip.
      – runDOSrun
      May 27 '16 at 12:57






    • 1




      @runDOSrun why not?
      – Charlie Parker
      Jan 14 '17 at 0:22






    • 2




      why do you need protobuf to uninstall tensorflow?
      – Charlie Parker
      Jan 14 '17 at 0:23






    • 1




      Why protobuf???
      – SmallChess
      Jan 13 at 4:01










    • @PseudoAj Why ??
      – SmallChess
      Jan 13 at 4:01















    up vote
    9
    down vote













    Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:



    sudo pip show tensorflow


    Uninstall using:



    sudo pip uninstall protobuf
    sudo pip uninstall tensorflow


    Install it using:



    sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl





    share|improve this answer

















    • 5




      You shall not sudo pip.
      – runDOSrun
      May 27 '16 at 12:57






    • 1




      @runDOSrun why not?
      – Charlie Parker
      Jan 14 '17 at 0:22






    • 2




      why do you need protobuf to uninstall tensorflow?
      – Charlie Parker
      Jan 14 '17 at 0:23






    • 1




      Why protobuf???
      – SmallChess
      Jan 13 at 4:01










    • @PseudoAj Why ??
      – SmallChess
      Jan 13 at 4:01













    up vote
    9
    down vote










    up vote
    9
    down vote









    Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:



    sudo pip show tensorflow


    Uninstall using:



    sudo pip uninstall protobuf
    sudo pip uninstall tensorflow


    Install it using:



    sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl





    share|improve this answer












    Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:



    sudo pip show tensorflow


    Uninstall using:



    sudo pip uninstall protobuf
    sudo pip uninstall tensorflow


    Install it using:



    sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 28 '16 at 1:51









    PseudoAj

    1913




    1913








    • 5




      You shall not sudo pip.
      – runDOSrun
      May 27 '16 at 12:57






    • 1




      @runDOSrun why not?
      – Charlie Parker
      Jan 14 '17 at 0:22






    • 2




      why do you need protobuf to uninstall tensorflow?
      – Charlie Parker
      Jan 14 '17 at 0:23






    • 1




      Why protobuf???
      – SmallChess
      Jan 13 at 4:01










    • @PseudoAj Why ??
      – SmallChess
      Jan 13 at 4:01














    • 5




      You shall not sudo pip.
      – runDOSrun
      May 27 '16 at 12:57






    • 1




      @runDOSrun why not?
      – Charlie Parker
      Jan 14 '17 at 0:22






    • 2




      why do you need protobuf to uninstall tensorflow?
      – Charlie Parker
      Jan 14 '17 at 0:23






    • 1




      Why protobuf???
      – SmallChess
      Jan 13 at 4:01










    • @PseudoAj Why ??
      – SmallChess
      Jan 13 at 4:01








    5




    5




    You shall not sudo pip.
    – runDOSrun
    May 27 '16 at 12:57




    You shall not sudo pip.
    – runDOSrun
    May 27 '16 at 12:57




    1




    1




    @runDOSrun why not?
    – Charlie Parker
    Jan 14 '17 at 0:22




    @runDOSrun why not?
    – Charlie Parker
    Jan 14 '17 at 0:22




    2




    2




    why do you need protobuf to uninstall tensorflow?
    – Charlie Parker
    Jan 14 '17 at 0:23




    why do you need protobuf to uninstall tensorflow?
    – Charlie Parker
    Jan 14 '17 at 0:23




    1




    1




    Why protobuf???
    – SmallChess
    Jan 13 at 4:01




    Why protobuf???
    – SmallChess
    Jan 13 at 4:01












    @PseudoAj Why ??
    – SmallChess
    Jan 13 at 4:01




    @PseudoAj Why ??
    – SmallChess
    Jan 13 at 4:01












    up vote
    0
    down vote













    When running in conda env or any virtual env sudo doesn't work. So you can use:



    python3 -m pip uninstall protobuf    
    python3 -m pip uninstall tensorflow-gpu


    python3 -m is safest way to ensure that you are using pip3 and not pip2.






    share|improve this answer

























      up vote
      0
      down vote













      When running in conda env or any virtual env sudo doesn't work. So you can use:



      python3 -m pip uninstall protobuf    
      python3 -m pip uninstall tensorflow-gpu


      python3 -m is safest way to ensure that you are using pip3 and not pip2.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        When running in conda env or any virtual env sudo doesn't work. So you can use:



        python3 -m pip uninstall protobuf    
        python3 -m pip uninstall tensorflow-gpu


        python3 -m is safest way to ensure that you are using pip3 and not pip2.






        share|improve this answer












        When running in conda env or any virtual env sudo doesn't work. So you can use:



        python3 -m pip uninstall protobuf    
        python3 -m pip uninstall tensorflow-gpu


        python3 -m is safest way to ensure that you are using pip3 and not pip2.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 26 at 18:12









        Dheeraj M Pai

        1066




        1066






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f764032%2fhow-to-uninstall-tensorflow-completely%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?