Fork me on GitHub

解决 InsecurePlatformWarning: A true SSLContext object is not available.

  1. ubuntu下安装 libffi-dev 和 libssl-dev :apt-get install libffi-dev libssl-dev(如果之前未安装,安装后需要重启)
  2. pip install requests[security] 或者 pip install pyopenssl ndg-httpsclient pyasn1
posted @ 2016-11-19 00:01  削微寒  阅读(3014)  评论(0编辑  收藏  举报