ImportError: No module named 'requests.packages.urllib3'

teqisid at gmail.com teqisid at gmail.com
Wed Apr 1 18:42:15 CEST 2015


On Wednesday, April 1, 2015 at 12:05:12 PM UTC-4, Ian wrote:
> On Wed, Apr 1, 2015 at 9:46 AM,  <teqisid at gmail.com> wrote:
> > When I am trying to import requests library in python shell, I get this error: ImportError: No module named 'requests.packages.urllib3'
> > I have tried searching online and followed a few probable solutions but yet no luck.
> > Does anyone know how I can solve this error?
> > I am using python 2.7
> 
> It sounds like there's something missing from your requests
> installation. How did you attempt to install it, and were there any
> errors?

I installed it using pip. I had to use sudo pip install requests to get the module in the site-packages directory. I did not see any error.



More information about the Python-list mailing list