Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Vous devez mettre à jour vos applications vers la dernière version d'exécution compatible pour continuer à recevoir les mises à jour de sécurité et bénéficier de l'assistance technique.
Le processus de mise à niveau d'une application existante dépend de la version d'exécution actuellement utilisée par votre application :
Python 2.7 (environnement d'exécution de première génération) : vous devez migrer votre application vers la dernière version compatible de Python. Python 2.7 n'est plus compatible à partir du 31 janvier 2024. Vos applications Python 2.7 existantes continueront à fonctionner et à recevoir du trafic. Toutefois, App Engine peut bloquer le redéploiement des applications qui utilisent des environnements d'exécution après leur date de fin de compatibilité.
Pour migrer de Python 2.7 vers la dernière version compatible de Python, consultez la section Migrer vers l'environnement d'exécution Python 3.
Environnements d'exécution Python de deuxième génération (après fin de compatibilité) : pour passer à une version compatible de Python, mettez à jour le fichier app.yaml en spécifiant une version de Python que vous souhaitez que votre application exécute. Exemple :
runtime:pythonVERSION
Où VERSION correspond aux numéros de version Python MAJOR et MINOR.
Par exemple, pour utiliser la dernière version de Python, Python 3.12, spécifiez 312.
Pour en savoir plus, consultez la présentation de l'environnement d'exécution Python.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/04/15 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/04/15 (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)."]]