安装python库requests的时候遇到问题:

InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

解决方法:


pip install requests[security]


有报错参考:

http://www.gaaaa.com/notes/python-gcc-failed-with-exit-status-1.html

执行


yum install libffi libffi-devel