Jun-18-2020, 07:48 AM
When i install "http module" using this command "pip3 install http" an error was occurred
Error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6yu_t3dd/http/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6yu_t3dd/http/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-6yu_t3dd/http/pip-egg-info
cwd: /tmp/pip-install-6yu_t3dd/http/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-6yu_t3dd/http/setup.py", line 3, in <module>
import http
File "/tmp/pip-install-6yu_t3dd/http/http/__init__.py", line 17, in <module>
from request import Request
ImportError: cannot import name 'Request' from 'request' (/home/abhishek/.local/lib/python3.8/site-packages/request/__init__.py)
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
how to solve this.