You moved an instance, AMI, or launch template from Amazon Linux 2 to Amazon Linux 2023, and something that used to run cleanly now fails on first boot: /usr/bin/env: 'python2': No such file or directory Or, if the script called the interpreter directly: -bash: /usr/bin/python2: No such file or d...

Source: [Dev.to](https://dev.to/ntoledo319/usrbinenv-python2-no-such-file-or-directory-amazon-linux-2023-has-no-python-2-5h8g)

Sponsored