No module named tweepy ERROR

Multi tool use
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
add a comment |
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
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
add a comment |
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
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
python pip tweepy
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
It seems the error was caused by 2 factors:
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
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
add a comment |
Install it from within Anaconda using
!pip install tweepy
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
It seems the error was caused by 2 factors:
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
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
add a comment |
It seems the error was caused by 2 factors:
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
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
add a comment |
It seems the error was caused by 2 factors:
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
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
It seems the error was caused by 2 factors:
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
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
answered Mar 29 '16 at 23:11
Toly
4271616
4271616
add a comment |
add a comment |
Install it from within Anaconda using
!pip install tweepy
add a comment |
Install it from within Anaconda using
!pip install tweepy
add a comment |
Install it from within Anaconda using
!pip install tweepy
Install it from within Anaconda using
!pip install tweepy
answered Dec 27 at 13:29


Diego Marino
3310
3310
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
G5Spcnoe5O,CW3Pb40OnP,VIJy0CZ4B3arFK2HMK87D1p0HbrzUtaelyGeCDV,aoFRG CJmOlnMIpNblrT,H35q4rc
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