I got the same error.
# /opt/bin/pip3 install requests==2.28.0
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30adb9e8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30adb880>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30adbc10>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30864a18>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30af6118>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests==2.28.0 (from versions: none)
------------------------------
Ramesh Shardha
------------------------------
Original Message:
Sent: Wed July 06, 2022 02:06 AM
From: Ayappan P
Subject: Error while installing Python modules like requests
The syntax differs for pip install. You have to use "pip install requests==2.28.0"
------------------------------
Ayappan P
Original Message:
Sent: Tue July 05, 2022 01:21 PM
From: Ramesh Shardha
Subject: Error while installing Python modules like requests
/opt/bin/python3 -m pip install requests-2.28.0
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30b05e80>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests-2-28-0/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30b053d0>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests-2-28-0/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30b053b8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests-2-28-0/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30b05520>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests-2-28-0/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x30b054a8>: Failed to establish a new connection: [Errno 8] Hostname and service name not provided or found')': /simple/requests-2-28-0/
ERROR: Could not find a version that satisfies the requirement requests-2.28.0 (from versions: none)
ERROR: No matching distribution found for requests-2.28.0
------------------------------
Ramesh Shardha
------------------------------