To create a new Python application that uses a specific Python version, follow these steps:
- Log in to cPanel.
- In the SOFTWARE section of the cPanel home screen, click Setup Python App

-
Click CREATE APPLICATION:
-
The application form will appear:
- In the Python version list box, select the Python version you want to use.
- In the Application root text box, type the directory where the application files are located.
- In the Application URL list box, select the domain, and then type a URL for the application.
-
In the Application startup file text box, you can optionally specify the startup file for the application.
-
In the Application Entry point text box, you can optionally specify the callable object for the application.
- In the Passenger log file text box, you can optionally specify a log file for the application.
- Under Environment variables, you can optionally set environment variables for the application. To do this, click , type the variable name and value, and then click .
-
In the top right corner of the page, click CREATE:
Take note of the following :
-
If you do not specify a startup file, cPanel creates a passenger_wsgi.py startup file for you.
- If you do not specify the application entry point, cPanel creates a default application object for you.
- Logging is not supported on servers running LiteSpeed.