Httpie: http command not found

Created on 5 Aug 2016  路  8Comments  路  Source: httpie/httpie

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

Most helpful comment

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
```

All 8 comments

Please check your pip bin directory is on your PATH.

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.

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
```

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

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

@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. https://github.com/lukeed/httpie/issues/5)

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. .....

@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.

Was this page helpful?
0 / 5 - 0 ratings