Dev Tools · 1h ago
Amazon Linux 2023 drops Python 2, breaking legacy scripts
Amazon Linux 2023 removes Python 2 entirely, causing scripts with python2 shebangs or invocations to fail. No python2 package is available via dnf, forcing migration to Python 3. Users must update shebangs, install a Python 3 version, and replace python2/pip2 references.
Meridian48 take
This is a long-overdue cleanup, but the lack of a transitional package may catch teams off guard during migration.
Read the full reporting
"/usr/bin/env: 'python2': No such file or directory — Amazon Linux 2023 has no Python 2" →
DEV Community
amazon-linuxpython-migration