0

I have never used Python before and am trying learn it on the fly. I have this file. I installed python 2.7 have added it the path. when I try python [filename].py I get errors saying

import requests,sys,csv,os,re,urllib2,urllib,time,traceback,string ImportError: No module named requests.

Am I missing something here. Where would I find these and how do I get this running

3
  • 1
    Yes, you are missig the requests module, apparently... It's a popular one, but it isn't part of the standard library. Commented Mar 7, 2018 at 0:03
  • I'd suggest spending a bit of time learning about python modules, where to find them, and how to install them. This is fairly basic stuff with many getting-started tutorials available. Commented Mar 7, 2018 at 0:04
  • Please consider using Python 3.6+ Commented Mar 7, 2018 at 0:12

1 Answer 1

1

You need to install the requests package:

pip install requests 

Tutorial about installing packages here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.