如何在Google App Engine上防止“ImportError:没有名为oauth2client.client的模块”?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在Google App Engine上防止“ImportError:没有名为oauth2client.client的模块”?相关的知识,希望对你有一定的参考价值。

我们收到一个错误:

ImportError:没有名为OAuth2Client的模块

我们已经注意到围绕此主题的大量问题,许多问题尚未得到解答,并且至少有一个答案描述了从Google App Engine SDK复制文件的解决方案。

然而,这种方法似乎很乏味,因为所有的依赖关系都不清楚。如果我们复制oauth2client然后运行,下一个错误是另一个缺少的模块。修复,然后另一个模块丢失,等等。

具有讽刺意味的是,我们可以在PyCharm中查看Google App Engine SDK中列出的所有所需文件和模块,但它们似乎无法访问脚本。

有没有更好的方法来吸引oauth2client需要Python在App Engine上工作的所有文件?

以上是关于如何在Google App Engine上防止“ImportError:没有名为oauth2client.client的模块”?的主要内容,如果未能解决你的问题,请参考以下文章

是否可以防止 Google App Engine 上的 DoSing?

使用安全约束时,防止 Google App Engine 记住非管理员用户的会话

在 Google App Engine 上部署 create-react-app

如何在 Google Cloud App Engine 上使用 PubSub 创建订阅者,该订阅者通过 Publisher 从 Google Cloud App Engine Flex 收听消息?

如何在 Google App Engine 上部署 Ktor 应用程序?

如何在 Google App Engine 上设置暂存环境