How do I resolve this error when I import requests? [closed]

-1
python3.2/site-packages/requests/__init__.py", line 84, in <module>
    from urllib3.contrib import pyopenssl
  File "/storage/emulated/0/com.hipipal.qpyplus/lib/python3.2/site-packages/urllib3/contrib/pyopenssl.py", line 147
    for prefix in [u'*.', u'.']:
                       ^
SyntaxError: invalid syntax
    
asked by anonymous 21.08.2017 / 18:50

1 answer

0

You need to use Python version 2.7. Out that the above error is not pyopenssl requests and yes import. Do the pip install for python 3.

Remove the requests you have installed and run the command:

pip3 install requests
    
21.08.2017 / 21:31