如何将 Google App Engine 从 Python2.7 和 DataStore 迁移到 Python3
我的网站是使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
迁移指南
Google 提供了分步迁移指南 特别是对于您应该遵循的 AppEngine。
此外,您还会发现许多有用的链接,您可以在其中了解 Python 2 和 Python 3 之间的差异以及各种可用的迁移工具。根据您的应用程序,这些工具甚至可能能够(或多或少)自动为您执行迁移。
视频: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.
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.