Running a simple Python application on an EC2 server
We are going to run a simple Python application on EC2. First of all, check the Python version:
- Execute
python --version
from the command line:
Figure 4.27 – Checking the Python version
- Run the
python
command on the command line:
Figure 4.28 – Connecting to the Python compiler
- Run a simple code snippet such as
print 'Hello EC2'
and you will see that the compiler executes the command and prints it:
Figure 4.29 – Running simple code
We have executed a simple Python application. In the next section, we will run a simple project on EC2.