【问题标题】:How do I fix this 'MODULE NOT FOUND ERROR' with TWEEPY?如何使用 TWEEPY 修复此“未找到模块错误”?
【发布时间】:2020-07-10 05:48:51
【问题描述】:

我正在尝试注册我的应用程序以从 Twitter 的 API 中检索推文。但我不断收到这个“模块未找到错误”。我的代码有什么问题?

【问题讨论】:

    标签: python twitter oauth nlp tweepy


    【解决方案1】:

    导入时删除.pyimport credentials 应该可以工作

    【讨论】:

      【解决方案2】:

      使用import credentials 并检查您正在导入的文件名。 对于推特情绪分析,一些你必须导入的导入库是-

      from tweepy.streaming import StreamListener
      from tweepy import OAuthHandler
      from tweepy import Stream
      import datetime, time
      

      重新检查这些东西,它会起作用:)

      【讨论】:

        猜你喜欢
        • 2021-09-04
        • 2022-10-09
        • 1970-01-01
        • 2020-10-04
        • 2019-10-06
        • 2019-12-18
        • 2022-01-05
        • 2019-12-07
        • 1970-01-01
        相关资源
        最近更新 更多