Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http command not found #500

Closed
ayushidalmia opened this issue Aug 5, 2016 · 8 comments
Closed

http command not found #500

ayushidalmia opened this issue Aug 5, 2016 · 8 comments

Comments

@ayushidalmia
Copy link

Hi,

I have installed httpie using pip on OS X. However, I am not able to use it. I get the following errorL

-bash: http: command not found
@francocorreasosa
Copy link

Please check your pip bin directory is on your PATH.

@type-a-developer
Copy link

I was using a virtual environment (venv) with Python Flask so I had to run the http commands in my venv directory were I installed the HTTPie application using pip. If you want it available everywhere add it to the global path as suggested by francocorreasosa.

@ddeveloperr
Copy link

ddeveloperr commented Jul 14, 2017

I had the same issue like @ayushidalmia

$  http: command not found

using ubuntu consoole over cloud9 IDE c9.io and after:

$  sudo pip install --upgrade httpie

This working as expected:

$ http httpie.org

@jkbrzt
Copy link
Member

jkbrzt commented May 23, 2020

If you system cannot find the http command, make sure the directory where it’s been installed is on your $PATH.

@jkbrzt jkbrzt closed this as completed May 23, 2020
@8secz-johndpope
Copy link

On Catalina with miniconda installed - and was seeing this running a vanilla
npm install httpie -g
sudo fixed it.

@jkbrzt
Copy link
Member

jkbrzt commented Jun 14, 2020

@8secz-johndpope HTTPie is not a JavaScript project, but a Python one. Please see https://httpie.org/docs#installation for all the available ways to install HTTPie.

(The npm package named "httpie" is completely unrelated and, sadly, the author refuses to rename it, and that generates confusion like this. lukeed/httpie#5)

@8secz-johndpope
Copy link

OMG - when I go to the official site - it says

Screen Shot 2020-06-15 at 9 25 26 am

maybe consider changing this to pip to avoid this confusion.
and put a big warning - not related to npm install. .....

@jkbrzt
Copy link
Member

jkbrzt commented Jun 15, 2020

@8secz-johndpope Some comments:

  1. pip is not the only tool that can install HTTPie.
  2. npm is not the only tool that cannot install HTTPie.
  3. You can see a list of the supported tools when you click the <tools> link.

Thanks for the feedback. I'm planning on adding there OS detection and showing the best tool to use in that context by default.

@httpie httpie locked as resolved and limited conversation to collaborators Jun 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants