This automatically creates a .python-version file in your current directory.
: Released in 2008, Python 3.0 was a major revision that was not backward-compatible .python version
While Lambda doesn't read .python-version directly, you can use it to generate your deployment image: This automatically creates a
Stick to one line. Most tools ignore blank lines, but comments ( # ) are not officially supported. Keep it clean. .python version
Simply run:
Checking your Python version is a fundamental task, but there are several ways to do it depending on whether you are looking from the outside (terminal) or the inside (scripting). 1. Terminal / Command Line