首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Google上尝试使用Tweepy使用Tweepy的Tweepy Tweepy在Google上使用Tweepy标记,这一错误消息使用Tweepy的Tweepy标记在Google上使用,其意义是什么?

在Google上尝试使用Tweepy使用Tweepy的Tweepy Tweepy在Google上使用Tweepy标记,这一错误消息使用Tweepy的Tweepy标记在Google上使用,其意义是什么?
EN

Stack Overflow用户
提问于 2022-02-04 05:31:56
回答 1查看 741关注 0票数 1

我正在尝试通过Google上的Tweepy访问Twitter,并且正在跟踪Twitter APIv2上的Tweepy文档。https://docs.tweepy.org/en/latest/authentication.html#twitter-api-v2

所以这就是我要做的:

代码语言:javascript
复制
import tweepy

client = tweepy.Client("my_bearer_token")

插入了实际的Bearer令牌。

但是,我收到以下错误消息:

代码语言:javascript
复制
AttributeError                            Traceback (most recent call last)
<ipython-input-3-2d6a240a3613> in <module>()
      1 import tweepy
      2 
----> 3 client = tweepy.Client("my_bearer_token")

AttributeError: module 'tweepy' has no attribute 'Client'

我读过这篇关于这个问题的文章,Tweepy 3.10.0, AttributeError: module 'tweepy' has no attribute 'Client',但我仍然不清楚为什么Tweepy文档的代码不能工作。

如果Tweepy没有属性'Client',那么该属性有更新吗?

EN

回答 1

Stack Overflow用户

发布于 2022-09-23 14:32:42

如果您使用tweepy.version,您将看到colab实际上已经安装了Tweepy3.10.0。我自己也面临着这个问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70981838

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档