How to uninstall a python package that I installed after compiling it with bazel?












0















I installed tensorflow after compiling it with bazel. Now I want to remove it.



My default python is python3.6, but this installation was done on python3.5.



How do I go about uninstalling tensorflow and removing all traces of the bazel installation?










share|improve this question























  • IIRC you only compile/build it with bazel, the actual installation is with pip.

    – Olorin
    15 hours ago











  • i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

    – user110327
    15 hours ago











  • If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

    – Olorin
    15 hours ago











  • python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

    – user110327
    15 hours ago






  • 1





    And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

    – Olorin
    15 hours ago


















0















I installed tensorflow after compiling it with bazel. Now I want to remove it.



My default python is python3.6, but this installation was done on python3.5.



How do I go about uninstalling tensorflow and removing all traces of the bazel installation?










share|improve this question























  • IIRC you only compile/build it with bazel, the actual installation is with pip.

    – Olorin
    15 hours ago











  • i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

    – user110327
    15 hours ago











  • If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

    – Olorin
    15 hours ago











  • python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

    – user110327
    15 hours ago






  • 1





    And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

    – Olorin
    15 hours ago
















0












0








0








I installed tensorflow after compiling it with bazel. Now I want to remove it.



My default python is python3.6, but this installation was done on python3.5.



How do I go about uninstalling tensorflow and removing all traces of the bazel installation?










share|improve this question














I installed tensorflow after compiling it with bazel. Now I want to remove it.



My default python is python3.6, but this installation was done on python3.5.



How do I go about uninstalling tensorflow and removing all traces of the bazel installation?







python






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 15 hours ago









user110327user110327

255311




255311













  • IIRC you only compile/build it with bazel, the actual installation is with pip.

    – Olorin
    15 hours ago











  • i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

    – user110327
    15 hours ago











  • If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

    – Olorin
    15 hours ago











  • python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

    – user110327
    15 hours ago






  • 1





    And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

    – Olorin
    15 hours ago





















  • IIRC you only compile/build it with bazel, the actual installation is with pip.

    – Olorin
    15 hours ago











  • i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

    – user110327
    15 hours ago











  • If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

    – Olorin
    15 hours ago











  • python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

    – user110327
    15 hours ago






  • 1





    And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

    – Olorin
    15 hours ago



















IIRC you only compile/build it with bazel, the actual installation is with pip.

– Olorin
15 hours ago





IIRC you only compile/build it with bazel, the actual installation is with pip.

– Olorin
15 hours ago













i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

– user110327
15 hours ago





i installed this ages ago, so i do not remember what i did actually. if i try to uninstall with pip, it works for python3.6 which is the default python in the system. but this python3.5 installation remains intact.

– user110327
15 hours ago













If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

– Olorin
15 hours ago





If you can't remember, then provide more details about the installation so we can try and figure out what you did to get here. Where is this python3.5 installation located? How did you get a python3.5 environment?

– Olorin
15 hours ago













python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

– user110327
15 hours ago





python3.5 is located in /usr/bin/local along with python3.6. i followed the instructions given here: pytorials.com/install-tensorflow141-gpu

– user110327
15 hours ago




1




1





And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

– Olorin
15 hours ago







And those instructions use pip to install tensorflow, like I said. Double check which pip you're using. If you have two installations of Python, maybe you overwrote the pip command from one of them with the other, but you should still be able to do python3.5 -m pip ...

– Olorin
15 hours ago












1 Answer
1






active

oldest

votes


















1














Bazel is only used for building Tensorflow; the actual installation is done with pip. So you need to uninstall it via pip as well.



If you installed two versions of Python to /usr/local, it's possible that the second installation overwrote the /usr/local/bin/pip command from the first. So you no longer have a pip command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip module, which functions just like the pip command:



python3.5 -m pip ...


With this you can install/remove packages for that version of Python.



However, for the future, I strongly recommend using virtual environments (via pipenv or anaconda, etc.) instead of installing to /usr/local, for better isolation. Installing to /usr/local also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip does with setup.py).






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%2f1123151%2fhow-to-uninstall-a-python-package-that-i-installed-after-compiling-it-with-bazel%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Bazel is only used for building Tensorflow; the actual installation is done with pip. So you need to uninstall it via pip as well.



    If you installed two versions of Python to /usr/local, it's possible that the second installation overwrote the /usr/local/bin/pip command from the first. So you no longer have a pip command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip module, which functions just like the pip command:



    python3.5 -m pip ...


    With this you can install/remove packages for that version of Python.



    However, for the future, I strongly recommend using virtual environments (via pipenv or anaconda, etc.) instead of installing to /usr/local, for better isolation. Installing to /usr/local also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip does with setup.py).






    share|improve this answer




























      1














      Bazel is only used for building Tensorflow; the actual installation is done with pip. So you need to uninstall it via pip as well.



      If you installed two versions of Python to /usr/local, it's possible that the second installation overwrote the /usr/local/bin/pip command from the first. So you no longer have a pip command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip module, which functions just like the pip command:



      python3.5 -m pip ...


      With this you can install/remove packages for that version of Python.



      However, for the future, I strongly recommend using virtual environments (via pipenv or anaconda, etc.) instead of installing to /usr/local, for better isolation. Installing to /usr/local also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip does with setup.py).






      share|improve this answer


























        1












        1








        1







        Bazel is only used for building Tensorflow; the actual installation is done with pip. So you need to uninstall it via pip as well.



        If you installed two versions of Python to /usr/local, it's possible that the second installation overwrote the /usr/local/bin/pip command from the first. So you no longer have a pip command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip module, which functions just like the pip command:



        python3.5 -m pip ...


        With this you can install/remove packages for that version of Python.



        However, for the future, I strongly recommend using virtual environments (via pipenv or anaconda, etc.) instead of installing to /usr/local, for better isolation. Installing to /usr/local also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip does with setup.py).






        share|improve this answer













        Bazel is only used for building Tensorflow; the actual installation is done with pip. So you need to uninstall it via pip as well.



        If you installed two versions of Python to /usr/local, it's possible that the second installation overwrote the /usr/local/bin/pip command from the first. So you no longer have a pip command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip module, which functions just like the pip command:



        python3.5 -m pip ...


        With this you can install/remove packages for that version of Python.



        However, for the future, I strongly recommend using virtual environments (via pipenv or anaconda, etc.) instead of installing to /usr/local, for better isolation. Installing to /usr/local also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip does with setup.py).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 14 hours ago









        OlorinOlorin

        2,596924




        2,596924






























            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%2f1123151%2fhow-to-uninstall-a-python-package-that-i-installed-after-compiling-it-with-bazel%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

            Category:香港粉麵

            List *all* the tuples!

            Channel [V]