我正在尝试安装python模块HTTP

时间:2019-06-11 03:14:02

标签: python http request

我正在尝试安装python模块“ HTTP”,但此错误即将到来

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\

2 个答案:

答案 0 :(得分:1)

您可能拥有过时的设置工具 您可以尝试运行以下命令:

pip install --upgrade setuptools

答案 1 :(得分:1)

Python 3.7(Python Documentation)中已经存在HTTP模块。您不需要安装它。