Installing python-based tools (httpie)











up vote
0
down vote

favorite












On a fresh ubuntu, I wanted to install httpie, so I tried:



sudo apt-get install httpie



So that seems to have "worked" but I can't run httpie, it says command not found. When I look for it, it looks like all I have is the code for httpie here:



/usr/lib/python2.7/dist-packages/httpie
/usr/local/lib/python3.4/dist-packages/httpie


If I then CD to either of those folders, it's just the code for httpie.. Am I missing something obvious here? I've tried to close and restart the session.



BTW I'm using python 2.7, and the latest Ubuntu (16.04.1)



Thanks



Matt










share|improve this question
























  • which version of ubuntu/python are you using?
    – Yaron
    Sep 19 '16 at 13:10










  • Sorry - updated the question
    – Matt Roberts
    Sep 19 '16 at 13:12















up vote
0
down vote

favorite












On a fresh ubuntu, I wanted to install httpie, so I tried:



sudo apt-get install httpie



So that seems to have "worked" but I can't run httpie, it says command not found. When I look for it, it looks like all I have is the code for httpie here:



/usr/lib/python2.7/dist-packages/httpie
/usr/local/lib/python3.4/dist-packages/httpie


If I then CD to either of those folders, it's just the code for httpie.. Am I missing something obvious here? I've tried to close and restart the session.



BTW I'm using python 2.7, and the latest Ubuntu (16.04.1)



Thanks



Matt










share|improve this question
























  • which version of ubuntu/python are you using?
    – Yaron
    Sep 19 '16 at 13:10










  • Sorry - updated the question
    – Matt Roberts
    Sep 19 '16 at 13:12













up vote
0
down vote

favorite









up vote
0
down vote

favorite











On a fresh ubuntu, I wanted to install httpie, so I tried:



sudo apt-get install httpie



So that seems to have "worked" but I can't run httpie, it says command not found. When I look for it, it looks like all I have is the code for httpie here:



/usr/lib/python2.7/dist-packages/httpie
/usr/local/lib/python3.4/dist-packages/httpie


If I then CD to either of those folders, it's just the code for httpie.. Am I missing something obvious here? I've tried to close and restart the session.



BTW I'm using python 2.7, and the latest Ubuntu (16.04.1)



Thanks



Matt










share|improve this question















On a fresh ubuntu, I wanted to install httpie, so I tried:



sudo apt-get install httpie



So that seems to have "worked" but I can't run httpie, it says command not found. When I look for it, it looks like all I have is the code for httpie here:



/usr/lib/python2.7/dist-packages/httpie
/usr/local/lib/python3.4/dist-packages/httpie


If I then CD to either of those folders, it's just the code for httpie.. Am I missing something obvious here? I've tried to close and restart the session.



BTW I'm using python 2.7, and the latest Ubuntu (16.04.1)



Thanks



Matt







apt python






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 at 18:58









M.A.K. Ripon

1,494922




1,494922










asked Sep 19 '16 at 13:08









Matt Roberts

1034




1034












  • which version of ubuntu/python are you using?
    – Yaron
    Sep 19 '16 at 13:10










  • Sorry - updated the question
    – Matt Roberts
    Sep 19 '16 at 13:12


















  • which version of ubuntu/python are you using?
    – Yaron
    Sep 19 '16 at 13:10










  • Sorry - updated the question
    – Matt Roberts
    Sep 19 '16 at 13:12
















which version of ubuntu/python are you using?
– Yaron
Sep 19 '16 at 13:10




which version of ubuntu/python are you using?
– Yaron
Sep 19 '16 at 13:10












Sorry - updated the question
– Matt Roberts
Sep 19 '16 at 13:12




Sorry - updated the question
– Matt Roberts
Sep 19 '16 at 13:12










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










You can list the files installed by a package with dpkg command, like:



dpkg -L httpie


One can see that /usr/bin/http is the only binary installed by the package and hence, http might be the command you are loooking for



One can use apt-file if the package is not installed:



apt-file list httpie





share|improve this answer





















  • Awesome stuff, I had no idea about the dpkg command :-) Thanks!
    – Matt Roberts
    Sep 19 '16 at 13:27











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: 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%2f826951%2finstalling-python-based-tools-httpie%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
2
down vote



accepted










You can list the files installed by a package with dpkg command, like:



dpkg -L httpie


One can see that /usr/bin/http is the only binary installed by the package and hence, http might be the command you are loooking for



One can use apt-file if the package is not installed:



apt-file list httpie





share|improve this answer





















  • Awesome stuff, I had no idea about the dpkg command :-) Thanks!
    – Matt Roberts
    Sep 19 '16 at 13:27















up vote
2
down vote



accepted










You can list the files installed by a package with dpkg command, like:



dpkg -L httpie


One can see that /usr/bin/http is the only binary installed by the package and hence, http might be the command you are loooking for



One can use apt-file if the package is not installed:



apt-file list httpie





share|improve this answer





















  • Awesome stuff, I had no idea about the dpkg command :-) Thanks!
    – Matt Roberts
    Sep 19 '16 at 13:27













up vote
2
down vote



accepted







up vote
2
down vote



accepted






You can list the files installed by a package with dpkg command, like:



dpkg -L httpie


One can see that /usr/bin/http is the only binary installed by the package and hence, http might be the command you are loooking for



One can use apt-file if the package is not installed:



apt-file list httpie





share|improve this answer












You can list the files installed by a package with dpkg command, like:



dpkg -L httpie


One can see that /usr/bin/http is the only binary installed by the package and hence, http might be the command you are loooking for



One can use apt-file if the package is not installed:



apt-file list httpie






share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 19 '16 at 13:22









solsTiCe

5,94922047




5,94922047












  • Awesome stuff, I had no idea about the dpkg command :-) Thanks!
    – Matt Roberts
    Sep 19 '16 at 13:27


















  • Awesome stuff, I had no idea about the dpkg command :-) Thanks!
    – Matt Roberts
    Sep 19 '16 at 13:27
















Awesome stuff, I had no idea about the dpkg command :-) Thanks!
– Matt Roberts
Sep 19 '16 at 13:27




Awesome stuff, I had no idea about the dpkg command :-) Thanks!
– Matt Roberts
Sep 19 '16 at 13:27


















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.





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%2faskubuntu.com%2fquestions%2f826951%2finstalling-python-based-tools-httpie%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei