---
title: How to Setup Python Application in cPanel
description: "🌐This guide is also available in Arabic[← اقرأ بالعربية](https://kb.tarweig.com/docs/%d9%83%d9%8a%d9%81%d9%8a%d8%a9-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d9%88%d8%a5%d8%b9%d8%af%d8%a7%d8%af-%d8%aa%d8%b7%d8%a8%d9%8a%d9%82%d8%a7%d8%aa-%d8%a8%d8%a7%d9%8a%d8%ab%d9%88%d9%86-setup-python-app/) In this tutorial, you will learn to quickly set up Python application with the cPanel graphical interface or from the command line. Tarweig’s infrastructure supports Python out of the box. Try…"
url: "https://kb.tarweig.com/en/docs/how-to-setup-python-application-in-cpanel/"
updated: "2026-10-11"
category: Applications Management
---

# How to Setup Python Application in cPanel

🌐This guide is also available in Arabic[← اقرأ بالعربية](https://kb.tarweig.com/docs/%d9%83%d9%8a%d9%81%d9%8a%d8%a9-%d8%aa%d8%b4%d8%ba%d9%8a%d9%84-%d9%88%d8%a5%d8%b9%d8%af%d8%a7%d8%af-%d8%aa%d8%b7%d8%a8%d9%8a%d9%82%d8%a7%d8%aa-%d8%a8%d8%a7%d9%8a%d8%ab%d9%88%d9%86-setup-python-app/)

In this tutorial, you will learn to quickly set up Python application with the cPanel graphical interface or from the command line.

Tarweig’s infrastructure supports Python out of the box. Try our [**Python Hosting**](https://tarweig.com/python-hosting/) plans if you’d like to experience top speed and reliability and have access to our easy Python installer.

We support the following python versions: 2.7.18, 3.3.7, 3.4.9, 3.5.9, 3.6.15, 3.7.12, 3.8.12, 3.9.12, 3.10.9 and 3.11.1

Please note that Python Application in cPanel is available for customers using any of our [Shared Hosting](https://tarweig.com/web-hosting#60b65e4e63b58) or [Reseller Hosting](https://tarweig.com/reseller-hosting#60b65e4e63b58) plans. If you are a [Managed VPS Hosting](https://tarweig.com/vps-hosting) customer, you’ll require a CloudLinux License –  Please get in touch with our Support team for pricing.

## How to Set up Python Application in cPanel

**1)** Log in to cPanel.
 **2)** In the **SOFTWARE** section of cPanel, click on the **Setup Python App** icon

![Setup Python](https://kb.tarweig.com/wp-content/uploads/kb-media/2020/04/Setup-Python-300x93.png)
 **3)** On the Python selector page, click on the **Create Application** button to start the application setup.

![](https://kb.tarweig.com/wp-content/uploads/kb-media/2019/09/Create-Application.png)

**4)** Fill in the required fields on the application setup form.

- **Python version**: Python version that your app will use to run and install dependencies.
- **Application root**: The directory path where all app files will reside.
- **Application URL**: the URL to enter in the browser to visit the app.
- **Application startup file**: The Path to wsgi.pg file. It must be specified as a filename.
- **Application Entry point**: This can be left blank. cPanel will auto-populate this section unless your application needs a specific value, in which case you add it.
- **Environment Variables**: Optionally you can add environment variables to your application.

![Create Python App](https://kb.tarweig.com/wp-content/uploads/kb-media/2020/04/Create-Python-App-1024x443.png)

**5)** After you are done, click “**CREATE**” to finish setting up the app.

You have the command necessary to enter your virtual environment at the very start. This is useful when you need to manually execute some commands either via SSH or with the terminal menu in cPanel.

**6)** Click **Run Pip Install** to install your app dependencies

You can additionally set up **Environment variables**:

Click **Add Variable** and you will be able to set up the **Name** and **Value** of the variable in question. After you have entered the correct data, click **Done** to create the variable.

**7)** When everything is done, Save and **RESTART** your app.

**That’s a wrap! Now you know how to set up a Python app using the cPanel.**
