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
apt python
add a comment |
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
apt python
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
add a comment |
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
apt python
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
apt python
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
add a comment |
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
add a comment |
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
Awesome stuff, I had no idea about the dpkg command :-) Thanks!
– Matt Roberts
Sep 19 '16 at 13:27
add a comment |
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
Awesome stuff, I had no idea about the dpkg command :-) Thanks!
– Matt Roberts
Sep 19 '16 at 13:27
add a comment |
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
Awesome stuff, I had no idea about the dpkg command :-) Thanks!
– Matt Roberts
Sep 19 '16 at 13:27
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f826951%2finstalling-python-based-tools-httpie%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
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