Why am I getting the message “No module named httplib2”?
up vote
1
down vote
favorite
Can anyone explain why I'm being told there is no httplib2 module even though it comes up under the pip list?
Johns-MacBook-Air-8:~ jyamamo$ pip list
httplib2 (0.9.2)
pip (8.1.2)
setuptools (20.10.1)
Johns-MacBook-Air-8:PythonOmekaApiToCsv-master jyamamo$ python omekacsv.py
Traceback (most recent call last):
  File "omekacsv.py", line 3, in <module>
    from omekaclient import OmekaClient
  File "/Users/jyamamo/Desktop/PythonOmekaApiToCsv-master/omekaclient.py", line 1, in <module>
    import httplib2
ImportError: No module named httplib2
Thanks in advance!
python macbook
add a comment |
up vote
1
down vote
favorite
Can anyone explain why I'm being told there is no httplib2 module even though it comes up under the pip list?
Johns-MacBook-Air-8:~ jyamamo$ pip list
httplib2 (0.9.2)
pip (8.1.2)
setuptools (20.10.1)
Johns-MacBook-Air-8:PythonOmekaApiToCsv-master jyamamo$ python omekacsv.py
Traceback (most recent call last):
  File "omekacsv.py", line 3, in <module>
    from omekaclient import OmekaClient
  File "/Users/jyamamo/Desktop/PythonOmekaApiToCsv-master/omekaclient.py", line 1, in <module>
    import httplib2
ImportError: No module named httplib2
Thanks in advance!
python macbook
 
 
 
 
 
 
 Are you using python 2 or python 3?
 – David the third
 Nov 6 at 16:36
 
 
 
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Can anyone explain why I'm being told there is no httplib2 module even though it comes up under the pip list?
Johns-MacBook-Air-8:~ jyamamo$ pip list
httplib2 (0.9.2)
pip (8.1.2)
setuptools (20.10.1)
Johns-MacBook-Air-8:PythonOmekaApiToCsv-master jyamamo$ python omekacsv.py
Traceback (most recent call last):
  File "omekacsv.py", line 3, in <module>
    from omekaclient import OmekaClient
  File "/Users/jyamamo/Desktop/PythonOmekaApiToCsv-master/omekaclient.py", line 1, in <module>
    import httplib2
ImportError: No module named httplib2
Thanks in advance!
python macbook
Can anyone explain why I'm being told there is no httplib2 module even though it comes up under the pip list?
Johns-MacBook-Air-8:~ jyamamo$ pip list
httplib2 (0.9.2)
pip (8.1.2)
setuptools (20.10.1)
Johns-MacBook-Air-8:PythonOmekaApiToCsv-master jyamamo$ python omekacsv.py
Traceback (most recent call last):
  File "omekacsv.py", line 3, in <module>
    from omekaclient import OmekaClient
  File "/Users/jyamamo/Desktop/PythonOmekaApiToCsv-master/omekaclient.py", line 1, in <module>
    import httplib2
ImportError: No module named httplib2
Thanks in advance!
python macbook
python macbook
edited Oct 27 '16 at 13:27
Daniel B
33.2k76087
33.2k76087
asked Oct 27 '16 at 13:14
John R. Yamamoto-Wilson
2615
2615
 
 
 
 
 
 
 Are you using python 2 or python 3?
 – David the third
 Nov 6 at 16:36
 
 
 
add a comment |
 
 
 
 
 
 
 Are you using python 2 or python 3?
 – David the third
 Nov 6 at 16:36
 
 
 
Are you using python 2 or python 3?
– David the third
Nov 6 at 16:36
Are you using python 2 or python 3?
– David the third
Nov 6 at 16:36
add a comment |
                                1 Answer
                                1
                        
active
oldest
votes
up vote
0
down vote
I believe you have 2 python versions installed. Try which pip and python -v to see what those aliases refers to. Usually pip refers to pip3, which installs for python3, 'python' usually refers to python2. 
Options :
- install httplib2for python2 usingpip2 install httplib2or system package manager.
Or
- Use python3
 
 
 
 
 
 
 It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
 – John R. Yamamoto-Wilson
 Oct 28 '16 at 19:18
 
 
 
 
 
 
 
 
 
 If you want- pip2install it, read this for help. My advise would be to use virtualenv. How to install pip with python3?
 – Thu Yein Tun
 Nov 1 '16 at 13:53
 
 
 
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1139569%2fwhy-am-i-getting-the-message-no-module-named-httplib2%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
up vote
0
down vote
I believe you have 2 python versions installed. Try which pip and python -v to see what those aliases refers to. Usually pip refers to pip3, which installs for python3, 'python' usually refers to python2. 
Options :
- install httplib2for python2 usingpip2 install httplib2or system package manager.
Or
- Use python3
 
 
 
 
 
 
 It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
 – John R. Yamamoto-Wilson
 Oct 28 '16 at 19:18
 
 
 
 
 
 
 
 
 
 If you want- pip2install it, read this for help. My advise would be to use virtualenv. How to install pip with python3?
 – Thu Yein Tun
 Nov 1 '16 at 13:53
 
 
 
add a comment |
up vote
0
down vote
I believe you have 2 python versions installed. Try which pip and python -v to see what those aliases refers to. Usually pip refers to pip3, which installs for python3, 'python' usually refers to python2. 
Options :
- install httplib2for python2 usingpip2 install httplib2or system package manager.
Or
- Use python3
 
 
 
 
 
 
 It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
 – John R. Yamamoto-Wilson
 Oct 28 '16 at 19:18
 
 
 
 
 
 
 
 
 
 If you want- pip2install it, read this for help. My advise would be to use virtualenv. How to install pip with python3?
 – Thu Yein Tun
 Nov 1 '16 at 13:53
 
 
 
add a comment |
up vote
0
down vote
up vote
0
down vote
I believe you have 2 python versions installed. Try which pip and python -v to see what those aliases refers to. Usually pip refers to pip3, which installs for python3, 'python' usually refers to python2. 
Options :
- install httplib2for python2 usingpip2 install httplib2or system package manager.
Or
- Use python3
I believe you have 2 python versions installed. Try which pip and python -v to see what those aliases refers to. Usually pip refers to pip3, which installs for python3, 'python' usually refers to python2. 
Options :
- install httplib2for python2 usingpip2 install httplib2or system package manager.
Or
- Use python3
answered Oct 28 '16 at 11:26
Thu Yein Tun
4141313
4141313
 
 
 
 
 
 
 It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
 – John R. Yamamoto-Wilson
 Oct 28 '16 at 19:18
 
 
 
 
 
 
 
 
 
 If you want- pip2install it, read this for help. My advise would be to use virtualenv. How to install pip with python3?
 – Thu Yein Tun
 Nov 1 '16 at 13:53
 
 
 
add a comment |
 
 
 
 
 
 
 It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
 – John R. Yamamoto-Wilson
 Oct 28 '16 at 19:18
 
 
 
 
 
 
 
 
 
 If you want- pip2install it, read this for help. My advise would be to use virtualenv. How to install pip with python3?
 – Thu Yein Tun
 Nov 1 '16 at 13:53
 
 
 
It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
– John R. Yamamoto-Wilson
Oct 28 '16 at 19:18
It doesn't like "pip2" (command not found). Python3 is in there, and "python3" at the command prompt leads to the acknowledgement "Python 3.5.2". However "python -v" still shows python 2.7 as the version being used. How do I either get pip2 running or get python to switch from 2.7 to 3.5.2?
– John R. Yamamoto-Wilson
Oct 28 '16 at 19:18
If you want
pip2 install it, read this for help. My advise would be to use virtualenv.  How to install pip with python3?– Thu Yein Tun
Nov 1 '16 at 13:53
If you want
pip2 install it, read this for help. My advise would be to use virtualenv.  How to install pip with python3?– Thu Yein Tun
Nov 1 '16 at 13:53
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1139569%2fwhy-am-i-getting-the-message-no-module-named-httplib2%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
Are you using python 2 or python 3?
– David the third
Nov 6 at 16:36