我试图在我的iPython笔记本中使用tweepy来获取一些推文。我有以下代码片段 -
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.
InsecurePlatformWarning
我读了this SO问题并从2.7.8更新到2.7.10。我仍然收到此错误。但是,当我在终端上运行这段代码时,它工作正常。所以我不明白iPython的问题是什么。