Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Anda harus mengupgrade aplikasi ke versi runtime terbaru yang didukung agar dapat terus menerima update keamanan dan memenuhi syarat untuk
dukungan teknis.
Proses mengupgrade aplikasi yang sudah ada bergantung pada versi runtime yang
saat ini digunakan aplikasi Anda:
Python 2.7 (runtime generasi pertama): Anda harus memigrasikan aplikasi ke versi Python terbaru yang didukung. Python 2.7 telah mencapai akhir dukungan pada 31 Januari 2024. Aplikasi
Python 2.7 yang ada akan terus berjalan dan menerima traffic. Namun,
App Engine dapat memblokir deployment ulang aplikasi yang menggunakan runtime
setelah tanggal akhir dukungannya.
Untuk bermigrasi dari Python 2.7 ke versi Python terbaru yang didukung, lihat
Bermigrasi ke runtime Python 3.
Runtime generasi kedua Python (setelah akhir dukungan): Untuk mengupgrade ke
versi Python yang didukung,
update file app.yaml dengan menentukan versi Python yang
ingin dijalankan aplikasi Anda. Contoh:
runtime:pythonVERSION
Dengan VERSION adalah nomor versi Python MAJOR dan MINOR.
Misalnya, untuk menggunakan versi Python terbaru, Python 3.13,
tentukan 313.
Untuk informasi selengkapnya, lihat
Ringkasan runtime Python.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[[["\u003cp\u003eUpgrading to the latest supported runtime version is crucial for ongoing security updates and technical support eligibility.\u003c/p\u003e\n"],["\u003cp\u003ePython 2.7 applications must be migrated to a supported Python version, as Python 2.7 reached its end of support on January 31, 2024, and redeployment may be blocked after the support end date.\u003c/p\u003e\n"],["\u003cp\u003eFor upgrading apps on second-generation Python runtimes, the \u003ccode\u003eapp.yaml\u003c/code\u003e file must be updated with the desired supported Python version, such as specifying \u003ccode\u003e312\u003c/code\u003e for Python 3.12.\u003c/p\u003e\n"]]],[],null,["# Upgrade an existing application\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nYou must upgrade your applications to the [latest supported runtime version](/appengine/docs/standard/lifecycle/support-schedule#python) to continue receiving security updates and be eligible for\ntechnical support.\n\nThe process of upgrading an existing app depends on the runtime version that\nyour app currently uses:\n\n- **Python 2.7 (first-generation runtime)** : You must migrate your app to the [latest supported Python version](/appengine/docs/standard/lifecycle/support-schedule#python). Python 2.7 has reached [end of support](/appengine/docs/standard/lifecycle/runtime-lifecycle#end_of_support) on January 31, 2024. Your\n existing Python 2.7 applications will continue to run and receive traffic. However,\n App Engine might block re-deployment of applications that use runtimes\n [after their end of support date](/appengine/docs/standard/lifecycle/support-schedule#python).\n To migrate from Python 2.7 to the latest supported version of Python, see\n [Migrate to the Python 3 runtime](/appengine/migration-center/standard/migrate-to-second-gen/python-differences).\n\n- **Python second-generation runtimes (after end of support)** : To upgrade to a\n [supported version of Python](/appengine/docs/standard/lifecycle/support-schedule#python),\n update the `app.yaml` file by specifying a version of Python that you\n want your app to run. For example:\n\n runtime: python\u003cvar translate=\"no\"\u003eVERSION\u003c/var\u003e\n\n Where \u003cvar translate=\"no\"\u003eVERSION\u003c/var\u003e is the Python `MAJOR` and `MINOR` version numbers.\n For example, to use the latest Python version, Python 3.13,\n specify `313`.\n For more information, see the\n [Python runtime overview](/appengine/docs/standard/python3/runtime)."]]