1

Not able to install HTTP module in Python 3.8.8.

Screenshot of the Error

WARNING: Discarding https://files.pythonhosted.org/packages/71/f0/787d609561ada283d6755e6f1198aa65a6eea075297725344e8f8c12eb03/http-0.1.tar.gz#sha256=0e66b52fc46640edd547c3c47a7913e0c5f76a69db6fb09e7b48c5f7866b2c37 (from https://pypi.org/simple/http/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

The Amateur Coder
  • 789
  • 3
  • 11
  • 33
  • 1
    `http` was written for Python 2. Indeed, `pip install http` works with Python 2.7. – tueda Dec 12 '21 at 05:39
  • Try importing it directly with `import http`, without `pip install http` as it comes with Python 3.8.8. I'm not sure what it does exactly, but the http module is pre-installed for the Python version you're using; I think installing it with `pip install http` just messes it up. I tried installing it and got the same error, but I can simply import it, and it works. – The Amateur Coder Dec 19 '21 at 16:49

1 Answers1

0

HTTP module is built-in, you don't have to install it.

Use import http to import it in python code.

Extrawdw
  • 319
  • 2
  • 3