ImportError: can not import name certs

-1

I'm running some exercises that I find on the internet. One of them is to use module requests

I installed the module in / site-packages, but when I try to import it, shell returns me the following message:

>>> import requests

Traceback (most recent call last):
 File "<pyshell#1>", line 1, in <module>
import requests
File "C:\Python27\lib\site-packages\requests\__init__.py", line 58, in <module>
from . import utils
File "C:\Python27\lib\site-packages\requests\utils.py", line 24, in <module>
from . import certs
ImportError: cannot import name certs
    
asked by anonymous 28.04.2014 / 20:05

1 answer

1

The problem can be solved by reinstalling Python (version 2.7.6), and later the Requests library, directly by git:

git clone git://github.com/kennethreitz/requests.git
cd requests
python setup.py install
    
07.05.2014 / 17:20