We help IT Professionals succeed at work.

Where to download python requests library

2,410 Views
Last Modified: 2017-03-25
https://github.com/mazen160/struts-pwn/blob/master/README.md

Refer to the above url: I've got python 2.7 installed successfully on my Win XP
ie one of the pre-requisite but still missing  "requests library" :

When I ran the py script in above url, got the error below:  reckon it's due to
the missing requests lib
importError :
  C:\rootc\strut>python struts-pwn.py --check --url 'http://www.google.com'
 Traceback (most recent call last):
   File "struts-pwn.py", line 13, in <module>
     import requests
 ImportError: No module named requests


The closest I got to download the requests lib is the link below but
I have difficulty registering or login via Google:
https://pypi.python.org/pypi/requests/2.7.0

It simply prompts me back for a login id when attempting to register.

Anyone has a ready copy for Win XP (32bit) that can be attached here?

I'll later need the same requests lib for python 3.x
Comment
Watch Question

Author

Commented:
I miss clarifying : when clicking on "Register" button, I kept getting "Page could not be found"

Any other better source to get this?
David Johnson, CDSimple Geek from the '70s
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Ok, got some progress:

C:\rootc\strut>pip install results
Collecting results
  Could not find a version that satisfies the requirement results (from versions
: )
No matching distribution found for results
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\rootc\strut>python -m pip install --upgrade pip
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 40kB/s
Installing collected packages: pip
  Found existing installation: pip 7.1.2
    Uninstalling pip-7.1.2:
      Successfully uninstalled pip-7.1.2

D:\Python27\Scripts>pip.exe install requests
Collecting requests
  Downloading requests-2.13.0-py2.py3-none-any.whl (584kB)
    100% |################################| 593kB 71kB/s
Installing collected packages: requests
Successfully installed requests-2.13.0

Author

Commented:
One query:
will pip install on a PC that has to go thru a proxy?
Or it needs to be direct Internet (eg: Broadband at home)?
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions