How to fix "AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'" err in Ubuntu 17.04

If for some reason you got this error in your Ubuntu 17.04 server:

AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'**
try this to fix it:

$ sudo pip install requests==2.6.0

Or

$ sudo pip install --upgrade requests

Comments