AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

解决方法

sudo rm -rf /usr/lib/python2.7/dist-packages/OpenSSL
sudo rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info
sudo pip install pyopenssl