No module named tweepy ERROR












0














I had to reinstall my Python environment to my new laptop with Win 10 (from Win 7). Installation went OK. No errors (just some warnings). Then I tried to run my old program starting with:



import tweepy
from tweepy import OAuthHandler


I got the following error:



ImportError                               Traceback (most recent call last)
<ipython-input-1-52abae0c6e08> in <module>()
----> 1 import tweepy
2 from tweepy import OAuthHandler

ImportError: No module named tweepy


The strangest thing is that I installed tweepy with no errors using pip install tweepy from C:Python27Scripts



I did it even twice and received the message Requirement already satisfied



Please, help



EDIT: I tried pip freeze and I can see tweepy 3.5.0 there
However I can not see tweepy anywhere on my drive and especially in Python27 and Python27/Scripts folders










share|improve this question
























  • Are you sure you are using Python2 and not Python3?
    – cricket_007
    Mar 27 '16 at 16:41










  • cricket_007 - absolutely. Python 2.7
    – Toly
    Mar 27 '16 at 16:43
















0














I had to reinstall my Python environment to my new laptop with Win 10 (from Win 7). Installation went OK. No errors (just some warnings). Then I tried to run my old program starting with:



import tweepy
from tweepy import OAuthHandler


I got the following error:



ImportError                               Traceback (most recent call last)
<ipython-input-1-52abae0c6e08> in <module>()
----> 1 import tweepy
2 from tweepy import OAuthHandler

ImportError: No module named tweepy


The strangest thing is that I installed tweepy with no errors using pip install tweepy from C:Python27Scripts



I did it even twice and received the message Requirement already satisfied



Please, help



EDIT: I tried pip freeze and I can see tweepy 3.5.0 there
However I can not see tweepy anywhere on my drive and especially in Python27 and Python27/Scripts folders










share|improve this question
























  • Are you sure you are using Python2 and not Python3?
    – cricket_007
    Mar 27 '16 at 16:41










  • cricket_007 - absolutely. Python 2.7
    – Toly
    Mar 27 '16 at 16:43














0












0








0







I had to reinstall my Python environment to my new laptop with Win 10 (from Win 7). Installation went OK. No errors (just some warnings). Then I tried to run my old program starting with:



import tweepy
from tweepy import OAuthHandler


I got the following error:



ImportError                               Traceback (most recent call last)
<ipython-input-1-52abae0c6e08> in <module>()
----> 1 import tweepy
2 from tweepy import OAuthHandler

ImportError: No module named tweepy


The strangest thing is that I installed tweepy with no errors using pip install tweepy from C:Python27Scripts



I did it even twice and received the message Requirement already satisfied



Please, help



EDIT: I tried pip freeze and I can see tweepy 3.5.0 there
However I can not see tweepy anywhere on my drive and especially in Python27 and Python27/Scripts folders










share|improve this question















I had to reinstall my Python environment to my new laptop with Win 10 (from Win 7). Installation went OK. No errors (just some warnings). Then I tried to run my old program starting with:



import tweepy
from tweepy import OAuthHandler


I got the following error:



ImportError                               Traceback (most recent call last)
<ipython-input-1-52abae0c6e08> in <module>()
----> 1 import tweepy
2 from tweepy import OAuthHandler

ImportError: No module named tweepy


The strangest thing is that I installed tweepy with no errors using pip install tweepy from C:Python27Scripts



I did it even twice and received the message Requirement already satisfied



Please, help



EDIT: I tried pip freeze and I can see tweepy 3.5.0 there
However I can not see tweepy anywhere on my drive and especially in Python27 and Python27/Scripts folders







python pip tweepy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 '16 at 16:34

























asked Mar 27 '16 at 16:07









Toly

4271616




4271616












  • Are you sure you are using Python2 and not Python3?
    – cricket_007
    Mar 27 '16 at 16:41










  • cricket_007 - absolutely. Python 2.7
    – Toly
    Mar 27 '16 at 16:43


















  • Are you sure you are using Python2 and not Python3?
    – cricket_007
    Mar 27 '16 at 16:41










  • cricket_007 - absolutely. Python 2.7
    – Toly
    Mar 27 '16 at 16:43
















Are you sure you are using Python2 and not Python3?
– cricket_007
Mar 27 '16 at 16:41




Are you sure you are using Python2 and not Python3?
– cricket_007
Mar 27 '16 at 16:41












cricket_007 - absolutely. Python 2.7
– Toly
Mar 27 '16 at 16:43




cricket_007 - absolutely. Python 2.7
– Toly
Mar 27 '16 at 16:43












2 Answers
2






active

oldest

votes


















0














It seems the error was caused by 2 factors:




  1. The order of installation of Python 2.7 and Anaconda may have created the error since "pip" is present in both. This could have been a problem


  2. I installed an older version of Anaconda (used with Win 7). It did not create a directory anaconda2 ! When I installed a new version for Win 10 (64 bit) it, in fact, created a directory Anaconda2. No python installation was required since Anaconda did it on its own. Then I used pip install to install tweepy and it worked in my old code







share|improve this answer





























    0














    Install it from within Anaconda using



    !pip install tweepy





    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      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%2fstackoverflow.com%2fquestions%2f36249533%2fno-module-named-tweepy-error%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









      0














      It seems the error was caused by 2 factors:




      1. The order of installation of Python 2.7 and Anaconda may have created the error since "pip" is present in both. This could have been a problem


      2. I installed an older version of Anaconda (used with Win 7). It did not create a directory anaconda2 ! When I installed a new version for Win 10 (64 bit) it, in fact, created a directory Anaconda2. No python installation was required since Anaconda did it on its own. Then I used pip install to install tweepy and it worked in my old code







      share|improve this answer


























        0














        It seems the error was caused by 2 factors:




        1. The order of installation of Python 2.7 and Anaconda may have created the error since "pip" is present in both. This could have been a problem


        2. I installed an older version of Anaconda (used with Win 7). It did not create a directory anaconda2 ! When I installed a new version for Win 10 (64 bit) it, in fact, created a directory Anaconda2. No python installation was required since Anaconda did it on its own. Then I used pip install to install tweepy and it worked in my old code







        share|improve this answer
























          0












          0








          0






          It seems the error was caused by 2 factors:




          1. The order of installation of Python 2.7 and Anaconda may have created the error since "pip" is present in both. This could have been a problem


          2. I installed an older version of Anaconda (used with Win 7). It did not create a directory anaconda2 ! When I installed a new version for Win 10 (64 bit) it, in fact, created a directory Anaconda2. No python installation was required since Anaconda did it on its own. Then I used pip install to install tweepy and it worked in my old code







          share|improve this answer












          It seems the error was caused by 2 factors:




          1. The order of installation of Python 2.7 and Anaconda may have created the error since "pip" is present in both. This could have been a problem


          2. I installed an older version of Anaconda (used with Win 7). It did not create a directory anaconda2 ! When I installed a new version for Win 10 (64 bit) it, in fact, created a directory Anaconda2. No python installation was required since Anaconda did it on its own. Then I used pip install to install tweepy and it worked in my old code








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 29 '16 at 23:11









          Toly

          4271616




          4271616

























              0














              Install it from within Anaconda using



              !pip install tweepy





              share|improve this answer


























                0














                Install it from within Anaconda using



                !pip install tweepy





                share|improve this answer
























                  0












                  0








                  0






                  Install it from within Anaconda using



                  !pip install tweepy





                  share|improve this answer












                  Install it from within Anaconda using



                  !pip install tweepy






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 27 at 13:29









                  Diego Marino

                  3310




                  3310






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • 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%2fstackoverflow.com%2fquestions%2f36249533%2fno-module-named-tweepy-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

                      Angular Downloading a file using contenturl with Basic Authentication

                      Olmecas

                      Can't read property showImagePicker of undefined in react native iOS