如何将 Google App Engine 从 Python2.7 和 DataStore 迁移到 Python3

发布于 2025-01-12 11:55:39 字数 169 浏览 4 评论 0原文

我的网站是使用 Google AppEngine、DataStore 和 Python2.7 构建的。它不再工作无法访问此网站。我需要迁移到 Python3,但我无法确定哪个迁移指南最适合我。谁能指出我正确的集合?我想让它尽快运行(我每天只有一小时的时间来尝试纠正它——我有一份不相关的全职工作)。

My website was built using Google AppEngine, DataStore and Python2.7. It’s no longer working This site can’t be reached. I need to migrate to Python3 but I cannot identify which migration guide is best suited for me. Can anyone point me to the correct set? I would like to get it running as quickly as possible (I only have one hour a day to try to correct it -- I have an unrelated full-time job).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无语# 2025-01-19 11:55:39

迁移指南

Google 提供了分步迁移指南 特别是对于您应该遵循的 AppEngine。
此外,您还会发现许多有用的链接,您可以在其中了解 Python 2 和 Python 3 之间的差异以及各种可用的迁移工具。根据您的应用程序,这些工具甚至可能能够(或多或少)自动为您执行迁移。

请注意:这是 AppEngine 标准环境的迁移指南。如果您不知道自己在使用什么,那么您很可能正在使用标准环境。虽然使用灵活环境时某些步骤会有所不同,但始终需要按照指南中的说明迁移代码库。

视频:Python 2 到 3:迁移模式和方法动机 (Cloud Next '19)

还有 Google 的演讲录音 Cloud 团队在 YouTube 上从 Python 2 迁移到 3。

还有问题吗?

从 Python 2 迁移到 3 是一个众所周知的问题,互联网上有大量可用信息。您面临的问题很可能已经被某人解决了,因此通过 Google 搜索特定问题可能会为您提供可行的解决方案。

Migration guide

Google provides a step-by-step migration guide especially for AppEngine which you should follow.
Additionally, you will find lots of useful links there where you can read about the differences between Python 2 and Python 3 and the various migration tools available. Depending on your application those tools might even be able to do the migration (more or less) automatically for you.

Please note: This is the migration guide for the AppEngine standard environment. If you don't know what you're using, you're most likely using the standard environment. While some steps will differ when using the flexible environment, migration of the code base as described in the guide will always be required.

Video: Python 2 to 3: Migration Patterns & Motivators (Cloud Next '19)

There also is a recording of a talk by the Google Cloud Team on migration from Python 2 to 3 on YouTube.

Still having issues?

Migrating from Python 2 to 3 is a well-known problem and there is tons of information available on the internet. Most likely the problems you face have already been solved by someone, so a Google search for a specific problem will likely give you a working solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文