1

I have installed python 2.7,added the path in environment variables trying to import requests module in python IDLE. To install requests module i am trying to use python -m pip install requests but i am getting error

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x040C7530>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/requests/ 
 Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests 

please help me what can i do

2
  • looks like your pip is not able to connect to the internet. Check your internet connection once Commented Mar 21, 2018 at 9:25
  • Internet connection is working fine no issues.Please let me know what else can i check Commented Mar 21, 2018 at 9:37

1 Answer 1

0

This answer won't tell you why you are getting that error, but suggests a workaround at the end.

Just a wild guess but perhaps the error is caused by not having the correct version of pip?

Python : ImportError: No module named requests

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.