Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run http command in Windows even after instaling

Tags:

http

httpie

I ran the command 'pip install -U httpie' and it went fine:

Windows Command Prompt saying "Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in c:\users'NAME'\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from requests[socks]>=2.22.0->httpie) (1.7.1)" (click to view image)

But when I try to use the http command in Windows command prompt, it is unable to find the command.

Windows Command Prompt saying " http GET http://www.example.com 'http' is not recognized as an internal or external command, operable program or batch file." (click to view image)

('http' is not recognized as an internal or external command, operable program or batch file.)

like image 576
Alex Andra Avatar asked Jan 25 '26 02:01

Alex Andra


1 Answers

It is for Windows:

  • All operations must be performed with administrator rights
  • You need install Python.
  • If python is installed, then update it
python.exe -m pip install --upgrade pip
  • Install httpie
pip install -U httpie

http --version
like image 154
skyho Avatar answered Jan 27 '26 00:01

skyho