ImportError: No module named pkg_resources

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








up vote
1
down vote

favorite












I am trying to install tensorflow-gpu for python 3.
when I run pip3:



sudo -H apt-get pip3 install tensorflow-gpu


I get:



Traceback (most recent call last:)
File "/usr/local/bin/pip3", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources









share|improve this question























  • You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
    – N0rbert
    Feb 14 at 17:00















up vote
1
down vote

favorite












I am trying to install tensorflow-gpu for python 3.
when I run pip3:



sudo -H apt-get pip3 install tensorflow-gpu


I get:



Traceback (most recent call last:)
File "/usr/local/bin/pip3", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources









share|improve this question























  • You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
    – N0rbert
    Feb 14 at 17:00













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to install tensorflow-gpu for python 3.
when I run pip3:



sudo -H apt-get pip3 install tensorflow-gpu


I get:



Traceback (most recent call last:)
File "/usr/local/bin/pip3", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources









share|improve this question















I am trying to install tensorflow-gpu for python 3.
when I run pip3:



sudo -H apt-get pip3 install tensorflow-gpu


I get:



Traceback (most recent call last:)
File "/usr/local/bin/pip3", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources






14.04 python3 pip pkg-config






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 15 at 19:17









wjandrea

7,25842256




7,25842256










asked Feb 14 at 16:58









Kudzayi Chiwoko

62




62











  • You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
    – N0rbert
    Feb 14 at 17:00

















  • You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
    – N0rbert
    Feb 14 at 17:00
















You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
– N0rbert
Feb 14 at 17:00





You have typo in apt-get pip3 install tensorflow-gpu - it should be pip3 install tensorflow-gpu. Try to follow official documentation.
– N0rbert
Feb 14 at 17:00











1 Answer
1






active

oldest

votes

















up vote
1
down vote













pkg_resources is a dependency of setuptools. Open the terminal and type:



sudo apt install --reinstall python3-pkg-resources python3-setuptools





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%2f1006201%2fimporterror-no-module-named-pkg-resources%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
    1
    down vote













    pkg_resources is a dependency of setuptools. Open the terminal and type:



    sudo apt install --reinstall python3-pkg-resources python3-setuptools





    share|improve this answer


























      up vote
      1
      down vote













      pkg_resources is a dependency of setuptools. Open the terminal and type:



      sudo apt install --reinstall python3-pkg-resources python3-setuptools





      share|improve this answer
























        up vote
        1
        down vote










        up vote
        1
        down vote









        pkg_resources is a dependency of setuptools. Open the terminal and type:



        sudo apt install --reinstall python3-pkg-resources python3-setuptools





        share|improve this answer














        pkg_resources is a dependency of setuptools. Open the terminal and type:



        sudo apt install --reinstall python3-pkg-resources python3-setuptools






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 17 at 4:59

























        answered Feb 14 at 17:18









        karel

        51.6k11107131




        51.6k11107131



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006201%2fimporterror-no-module-named-pkg-resources%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error