08-12-2021 05:16 AM
On a Catalyst 9300 Version 17.3.2r, I started 'guestshell run bash' and in guestshell 'pip3 install requests'.
I've got the following:
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb0cf565f28>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/requests/
Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
Is there no module requests available with guestshell ?
Solved! Go to Solution.
08-12-2021 05:24 AM
Hi there,
The pip command should be run with sudo:
sudo pip install requests
Also, have you confirmed you DNS settings? cat /etc/resolv.conf
cheers,
Seb.
08-12-2021 05:24 AM
Hi there,
The pip command should be run with sudo:
sudo pip install requests
Also, have you confirmed you DNS settings? cat /etc/resolv.conf
cheers,
Seb.
08-12-2021 05:40 AM
Thank you so much,
I've added nameservers to /etc/resolv.conf. Then "sudo pip3 install requests" worked as expected.
Richard
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide