2019 十二月 7 , 星期六
Home / 开发语言 / python / python 解决 InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information

python 解决 InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information

因为SSL的问题,urllib3需要pyopenssl。
最简单的方法是:
pip install pyopenssl ndg-httpsclient pyasn1
还需要安装libffi-dev,libssl-dev
1.Ubuntu下安装
sudo apt-get install libffi-dev libssl-dev
2.CentOS下安装
yum install libffi-devel openssl-devel
参考地址 http://www.virson.cn/4465.html

Check Also

pymongo 聚合查询group

获取重复的手机号 db.wei ...

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>