Technical A.D.
Technical A.D.

Reputation: 21

I am trying to install python module HTTP

I am trying to install python module "HTTP" but this error is coming

pip install HTTP
Collecting HTTP
  Using cached https://files.pythonhosted.org/packages/e3/91/a9260805e532e33df273b8f7dffad5c51693f8f9ba5f86bedcf42a7f22eb/http-0.02.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\WINDOWS\TEMP\pip-install-u99l10q0\HTTP\setup.py", line 3, in <module>
        import http
      File "C:\WINDOWS\TEMP\pip-install-u99l10q0\HTTP\http\__init__.py", line 17, in <module>
        from request import Request
    ImportError: cannot import name 'Request'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\WINDOWS\TEMP\pip-install-u99l10q0\HTTP\

Upvotes: 2

Views: 1604

Answers (2)

Fatema Tuz Zuhora
Fatema Tuz Zuhora

Reputation: 3716

The HTTP module is already present in python 3.7 (Python Documentation). You don't need to install it.

Upvotes: 3

You might have an out of date setuptools What you could try is to run the following command:

pip install --upgrade setuptools

Upvotes: 2

Related Questions