I need to install the module 'Request' but when I run the command pip3 install Request it gives me back this error:
This is what I need to run the program:
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
import random
and this is what I get when I try to install Request module via pip3 in terminal:
Collecting Request
Installing collected packages: Request
ERROR: Exception:
Traceback (most recent call last):
File "/root/.local/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/root/.local/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/root/.local/lib/python3.5/site-packages/pip/_internal/req/__init__.py", line 58, in install_given_reqs
**kwargs
File "/root/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 920, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/root/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 448, in move_wheel_files
warn_script_location=warn_script_location,
File "/root/.local/lib/python3.5/site-packages/pip/_internal/wheel.py", line 428, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: Request .dist-info directory not found
If I run
pip install Request
it tells me that requirements are already satisfied, but when I run the program it says that module Request is missing.