【问题标题】:twitter python script generates errortwitter python脚本生成错误
【发布时间】:2015-05-20 14:34:47
【问题描述】:

喂。所以我安装了 python 2.7.9 和来自 github 的 twitter follow bot。我真的不知道自己做错了什么,但是当我尝试使用命令时出现错误。在这个中使用这个from twitter_follow_bot import auto_follow_followers_for_userresults Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> from twitter_follow_bot import auto_follow File "twitter_follow_bot.py", line 21, in <module> from twitter import Twitter, OAuth, TwitterHTTPError ImportError: cannot import name Twitter 知道我做错了什么。我以前从未使用过 python,所以如果你能一步一步地向我解释,那就太好了。谢谢

【问题讨论】:

    标签: python twitter bots twitter-follow


    【解决方案1】:

    from twitter import Twitter, OAuth, TwitterHTTPError“推特”中不存在“推特”。尝试重新下载或仔细检查该文件是否甚至在“twitter”中。

    【讨论】:

    • 我该怎么做?
    • 重新下载 - 只需卸载“twitter”或“twitter _follow_bot”(您下载的任何一个)或删除它,然后像第一次一样重新安装。要检查文件,请使用文件资源管理器并找到文件目录。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-14
    • 1970-01-01
    • 2014-05-07
    • 1970-01-01
    • 2017-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多