cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
573
Views
5
Helpful
1
Replies

DEVNET - Hands On Exercise: Using Postman to Interact with REST APIs

m.howsmon
Level 1
Level 1

I'm trying to complete the lab in the title. One section has you export the code in python. I can't get the code to run because it is dependent on a "requests" library. Where do you get this library? I attempted to download it:

 

$ git clone https://github.com/CiscoDevNet/requests
Cloning into 'requests'...
remote: Repository not found.
fatal: repository 'https://github.com/CiscoDevNet/requests/' not found

 

If anyone know where I can get it I would appreciate it.

1 Reply 1

omz
VIP Alumni
VIP Alumni

Hi 

Requests library is available on pip.

You can do - 

pip install requests

to install the requests library.

 

If you are using virtual environment, don't forget to activate it before installing ... if you did something like .. source /bin/activate

If you didn't .. then you can ignore the activate part.