不安全平台警告:iPython笔记本上没有真正的SSLContext对象
我正试图用tweepy在我的iPython笔记本上获取一些推文。我有以下代码片段-不安全平台警告:iPython笔记本上没有真正的SSLContext对象,python,ipython,tweepy,urllib3,Python,Ipython,Tweepy,Urllib3,我正试图用tweepy在我的iPython笔记本上获取一些推文。我有以下代码片段- import tweepy auth = tweepy.OAuthHandler("abc", "xzy") auth.set_access_token("asd", "zxc") api = tweepy.API(auth) public_tweets = api.home_timeline() 我犯了以下错误- /usr/local/lib/python2.7/site-packages/requests/
import tweepy
auth = tweepy.OAuthHandler("abc", "xzy")
auth.set_access_token("asd", "zxc")
api = tweepy.API(auth)
public_tweets = api.home_timeline()
我犯了以下错误-
/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: 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, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
不安全平台警告
我读了这么多问题,并从2.7.8更新到2.7.10。我仍然得到这个错误。然而,当我在终端上运行这段代码时,它工作得很好。所以我不明白iPython有什么问题。您安装了额外的依赖项吗
pip安装pyopenssl-ndg-httpsclient-pyasn1
@shazow-不幸的是,我仍然收到这个错误。我尝试了您建议的命令,结果显示所有要求都已满足。您是否安装了额外的依赖项pip安装pyopenssl-ndg-httpsclient-pyasn1
@shazow-不幸的是,我仍然收到这个错误。我尝试了您建议的命令,结果显示所有要求都已满足。