cli icon indicating copy to clipboard operation
cli copied to clipboard

http command not found

Open ayushidalmia opened this issue 10 years ago • 8 comments

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

ayushidalmia avatar Aug 05 '16 05:08 ayushidalmia

Please check your pip bin directory is on your PATH.

francocorreasosa avatar Aug 16 '16 14:08 francocorreasosa

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.

type-a-developer avatar Nov 26 '16 16:11 type-a-developer

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

ddeveloperr avatar Jul 14 '17 14:07 ddeveloperr

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

jkbrzt avatar May 23 '20 18:05 jkbrzt

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

8secz-johndpope avatar Jun 14 '20 00:06 8secz-johndpope

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

jkbrzt avatar Jun 14 '20 07:06 jkbrzt

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 avatar Jun 14 '20 23:06 8secz-johndpope

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

jkbrzt avatar Jun 15 '20 06:06 jkbrzt