sudo pip install error












2















I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7.



pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)


Unfortunately, since trying to upgrade one of the pip packages, I'm unable to install anything using pip. I'm getting the following error messages:



vince@hal:~$ sudo pip install glances
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$ sudo pip install flexget
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$


Anyone got any ideas?










share|improve this question

























  • How you installed pip? and the contents of the log file?

    – Braiam
    May 1 '14 at 18:47











  • You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

    – belacqua
    May 3 '14 at 3:55











  • askubuntu.com/questions/429417/… seems to have it solved in comments.

    – Rinzwind
    May 3 '14 at 6:47
















2















I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7.



pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)


Unfortunately, since trying to upgrade one of the pip packages, I'm unable to install anything using pip. I'm getting the following error messages:



vince@hal:~$ sudo pip install glances
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$ sudo pip install flexget
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$


Anyone got any ideas?










share|improve this question

























  • How you installed pip? and the contents of the log file?

    – Braiam
    May 1 '14 at 18:47











  • You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

    – belacqua
    May 3 '14 at 3:55











  • askubuntu.com/questions/429417/… seems to have it solved in comments.

    – Rinzwind
    May 3 '14 at 6:47














2












2








2








I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7.



pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)


Unfortunately, since trying to upgrade one of the pip packages, I'm unable to install anything using pip. I'm getting the following error messages:



vince@hal:~$ sudo pip install glances
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$ sudo pip install flexget
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$


Anyone got any ideas?










share|improve this question
















I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7.



pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)


Unfortunately, since trying to upgrade one of the pip packages, I'm unable to install anything using pip. I'm getting the following error messages:



vince@hal:~$ sudo pip install glances
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$ sudo pip install flexget
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 215, in run
import setuptools
ImportError: No module named setuptools

Storing complete log in /home/vince/.pip/pip.log
vince@hal:~$


Anyone got any ideas?







python pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 1 '14 at 18:46









Braiam

51.7k20136220




51.7k20136220










asked Apr 19 '14 at 23:43









VinceVince

21114




21114













  • How you installed pip? and the contents of the log file?

    – Braiam
    May 1 '14 at 18:47











  • You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

    – belacqua
    May 3 '14 at 3:55











  • askubuntu.com/questions/429417/… seems to have it solved in comments.

    – Rinzwind
    May 3 '14 at 6:47



















  • How you installed pip? and the contents of the log file?

    – Braiam
    May 1 '14 at 18:47











  • You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

    – belacqua
    May 3 '14 at 3:55











  • askubuntu.com/questions/429417/… seems to have it solved in comments.

    – Rinzwind
    May 3 '14 at 6:47

















How you installed pip? and the contents of the log file?

– Braiam
May 1 '14 at 18:47





How you installed pip? and the contents of the log file?

– Braiam
May 1 '14 at 18:47













You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

– belacqua
May 3 '14 at 3:55





You might see if you have /usr/share/doc/python-pip/distribute_setuptools.rst on your system (mine came with python-pip). It explains a possible cause of this and gives a solution (which from a cursory look appears to be the same you found from the support ticket).

– belacqua
May 3 '14 at 3:55













askubuntu.com/questions/429417/… seems to have it solved in comments.

– Rinzwind
May 3 '14 at 6:47





askubuntu.com/questions/429417/… seems to have it solved in comments.

– Rinzwind
May 3 '14 at 6:47










3 Answers
3






active

oldest

votes


















1














sudo apt-get install python-setuptools





share|improve this answer


























  • Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

    – Vince
    Apr 20 '14 at 0:06













  • and when you installing setuptools via pip, what is happening? sudo pip install setuptools

    – Valentin Kantor
    Apr 20 '14 at 0:33





















1














Okay, I managed to get it working - hopefully this will help others in the future:



Found the following ticket:



http://flexget.com/ticket/21161



From here I used the following command:




This was because the upgrade somehow managed to remove the setuptools
package from my python environment. Running the command below fixed
setuptools and allowed me to use pip to uninstall and reinstall
flexget.



curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py |
sudo python




Successfully installed flexget



Cleaning up...



vince@hal:~$ flexget -V

1.2.125


You are on the latest release.






share|improve this answer

































    0














    First of all install python-setuptools



    apt install python-setuptools


    then try



    easy_install glances





    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%2f450988%2fsudo-pip-install-error%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      sudo apt-get install python-setuptools





      share|improve this answer


























      • Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

        – Vince
        Apr 20 '14 at 0:06













      • and when you installing setuptools via pip, what is happening? sudo pip install setuptools

        – Valentin Kantor
        Apr 20 '14 at 0:33


















      1














      sudo apt-get install python-setuptools





      share|improve this answer


























      • Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

        – Vince
        Apr 20 '14 at 0:06













      • and when you installing setuptools via pip, what is happening? sudo pip install setuptools

        – Valentin Kantor
        Apr 20 '14 at 0:33
















      1












      1








      1







      sudo apt-get install python-setuptools





      share|improve this answer















      sudo apt-get install python-setuptools






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 20 '14 at 3:31









      amc

      4,67962746




      4,67962746










      answered Apr 19 '14 at 23:47









      Valentin KantorValentin Kantor

      30636




      30636













      • Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

        – Vince
        Apr 20 '14 at 0:06













      • and when you installing setuptools via pip, what is happening? sudo pip install setuptools

        – Valentin Kantor
        Apr 20 '14 at 0:33





















      • Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

        – Vince
        Apr 20 '14 at 0:06













      • and when you installing setuptools via pip, what is happening? sudo pip install setuptools

        – Valentin Kantor
        Apr 20 '14 at 0:33



















      Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – Vince
      Apr 20 '14 at 0:06







      Didn't work. I've already got it installed: vince@hal:~$ sudo apt-get install python-setuptools python-setuptools is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – Vince
      Apr 20 '14 at 0:06















      and when you installing setuptools via pip, what is happening? sudo pip install setuptools

      – Valentin Kantor
      Apr 20 '14 at 0:33







      and when you installing setuptools via pip, what is happening? sudo pip install setuptools

      – Valentin Kantor
      Apr 20 '14 at 0:33















      1














      Okay, I managed to get it working - hopefully this will help others in the future:



      Found the following ticket:



      http://flexget.com/ticket/21161



      From here I used the following command:




      This was because the upgrade somehow managed to remove the setuptools
      package from my python environment. Running the command below fixed
      setuptools and allowed me to use pip to uninstall and reinstall
      flexget.



      curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py |
      sudo python




      Successfully installed flexget



      Cleaning up...



      vince@hal:~$ flexget -V

      1.2.125


      You are on the latest release.






      share|improve this answer






























        1














        Okay, I managed to get it working - hopefully this will help others in the future:



        Found the following ticket:



        http://flexget.com/ticket/21161



        From here I used the following command:




        This was because the upgrade somehow managed to remove the setuptools
        package from my python environment. Running the command below fixed
        setuptools and allowed me to use pip to uninstall and reinstall
        flexget.



        curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py |
        sudo python




        Successfully installed flexget



        Cleaning up...



        vince@hal:~$ flexget -V

        1.2.125


        You are on the latest release.






        share|improve this answer




























          1












          1








          1







          Okay, I managed to get it working - hopefully this will help others in the future:



          Found the following ticket:



          http://flexget.com/ticket/21161



          From here I used the following command:




          This was because the upgrade somehow managed to remove the setuptools
          package from my python environment. Running the command below fixed
          setuptools and allowed me to use pip to uninstall and reinstall
          flexget.



          curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py |
          sudo python




          Successfully installed flexget



          Cleaning up...



          vince@hal:~$ flexget -V

          1.2.125


          You are on the latest release.






          share|improve this answer















          Okay, I managed to get it working - hopefully this will help others in the future:



          Found the following ticket:



          http://flexget.com/ticket/21161



          From here I used the following command:




          This was because the upgrade somehow managed to remove the setuptools
          package from my python environment. Running the command below fixed
          setuptools and allowed me to use pip to uninstall and reinstall
          flexget.



          curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py |
          sudo python




          Successfully installed flexget



          Cleaning up...



          vince@hal:~$ flexget -V

          1.2.125


          You are on the latest release.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 3 '14 at 17:45









          Seth

          34.3k26110162




          34.3k26110162










          answered May 2 '14 at 20:01









          VinceVince

          21114




          21114























              0














              First of all install python-setuptools



              apt install python-setuptools


              then try



              easy_install glances





              share|improve this answer






























                0














                First of all install python-setuptools



                apt install python-setuptools


                then try



                easy_install glances





                share|improve this answer




























                  0












                  0








                  0







                  First of all install python-setuptools



                  apt install python-setuptools


                  then try



                  easy_install glances





                  share|improve this answer















                  First of all install python-setuptools



                  apt install python-setuptools


                  then try



                  easy_install glances






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 7 at 5:53









                  Pablo Bianchi

                  2,4651531




                  2,4651531










                  answered Jan 6 at 14:05









                  Harry1992Harry1992

                  1




                  1






























                      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%2f450988%2fsudo-pip-install-error%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

                      Ellipse (mathématiques)

                      Quarter-circle Tiles

                      Mont Emei