Tech
"/usr/bin/env: 'python2': No such file or directory — Amazon Linux 2023 has no Python 2"
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 directory
dnf works, the instance is healthy, but any script with a #!/usr/bin/python2 shebang, a python2 script.py invocation, or a tool that shells out to ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to