cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1405
Views
5
Helpful
2
Replies

guestshell ,pip3 install requests, on catalyst 9300 17.3.2r

richard.walter
Level 1
Level 1

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 ?

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

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.

View solution in original post

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

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.

Thank you so much,

I've added nameservers to /etc/resolv.conf. Then "sudo pip3 install requests" worked as expected.

 

Richard