问题一:ImportError:cannotimportnameUnrewindableBodyError在网上搜索了一下,发现是python包urlib3的问题,需要卸载重装#sudopipuninstallurllib3#sudoyumremovepython-urllib3#sudopipinstallurllib3#sudoyuminstallpython-urllib3问题2:ImportError:'pyOpenSSL'modulemissingrequiredfunctionality问题原因是openssl包的版本太低。centos7默认是0.13,cert最低要求是0.14。我在网上找到了一种解决方案是通过rpm包升级到0.15rpm-Uvhhttp://cbs.centos.org/kojifiles/packages/pyOpenSSL/0.15.1/1.el7/noarch/pyOpenSSL-0.15.1-1.el7.noarch.rpm如果你这样做,那么你会遇到另一个问题:AttributeError:'module'objecthasnoattribute'SSL_ST_INIT'在网上找到的这个问题的解决方法是让你降级到centos7的默认版本.........终极解决方案:升级到0.16或更高版本rpm-Uvhhttps://cbs.centos.org/kojifiles/packages/pyOpenSSL/16.2.0/3.el7/noarch/python2-pyOpenSSL-16.2.0-3。el7.noarch.rpm
