This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Allen Preveaux
over 10 years

import requests

when I try to apply this to my local python implementation the interpreter returns:

 Traceback (most recent call last):
  File "C:/programmingFiles/API practice", line 1, in <module>
    import requests
ImportError: No module named requests

What did I miss?

Answer 534d81ae80ff338e3a000b7b

1 vote

Permalink

The intalation is more simple than it appears in the docs. Just one in in the command line. On Linux or OS X:

pip install -U pip

On Windows:

python -m pip install -U pip

This installs and upgrades pip , efficient Python package management and installation module.

Then requests can be installed by another command line one liner:

 pip install requests
points
Submitted by Tomas
almost 10 years

Answer 52ea345f631fe921ea001bc2

0 votes

Permalink

You need to install requests on your computer first. Instructions are on their website. Before this you will probably need to install Python package installer pip (link is on the requests site too.)

points
Submitted by Tomas
about 10 years

Answer 53485011548c35aa79000733

0 votes

Permalink

Anyone know of step by step instructions on how to do this? As a newbie the instructions provided by pip and requests on how to install them is over my head (and I would imagine over the head of other newbies).

points
Submitted by NewtBuggs
almost 10 years