How to Install Python PIP on cPanel

How to Install Python PIP on cPanel
Eileen.B
7m
0 comments
Print
2024/12/05

In this article, we will explain how to install Python PIP on cPanel step-by-step. A popular application for managing web servers. cPanel is a web hosting control panel that operates on a Linux-based system. This application is designed for everyone because of its user friendly interface. This simplicity is a key reason for cPanel’s popularity, as it enables individuals with limited knowledge to manage their hosting servers efficiently. To purchase your first plan, visit the main cPanel company or check out neuronVM website.


What is PIP?

PIP stands for “pip install packages.” It is the essential tool for effortlessly managing and installing packages in Python, making your coding experience smoother.

How to check the PIP version of your server

First, use the command to check if PIP is already installed on your device.

pip -- version

If it is not installed, you can visit the main website to download it.

Note: If you are using Python version 3.4 or newer, it is already installed.

Requirements for Setup Python PIP on cPanel

  • root access
  • cPanel installed on the server
  • update server

If your server is CentOS, enter the following command in the terminal:

sudo yum update

If your server is Ubuntu, you can use the following command in the terminal:

apt-get update && upgrade

If your server is osAlmaLinux, please input the following command in the terminal:

dnf update && upgrade

14 Steps to Set up Python PIP on cPanel

Step 1) The first thing to check is if root access to cPanel is allowed, and then you can log in to your cPanel.

 

logging in to cPanel account

Step 2) Go to the software bar, choose “Setup Python Application,” then click on “Create Application” and complete all required fields.

Setting up Python application on cPanel

Step 3) In the “Application Root” selection, we will choose the folder where our program files will be located.

Application root selection

Step 4) Select the Site URL that will open the application online and enter it in the “Application URL” field.

entering the URL to Application URL

Step 5) In the “Application Startup File ” field, specify the name of your app. For example, you can use “app.py.”

entering the name of app to Application Startup File

Step 6) You can leave the “Application Entry Point” field blank; cPanel will handle the task for you.

Leave Application Entry Point blank

Step 7) Scroll to the top of the page and choose the Python version that you previously installed.

Choose the Python version you installed

Step 8) Click on the “Create” button. After a few seconds, a message will appear stating, “Python Application Created.” After that, please copy the command displayed on the screen.

Python Application Creation

Step 9) Open the cPanel website in a new tab. Navigate to the “Advanced” section and select “Terminal.”

select Terminal

Step 10) Once the “Terminal” is visible, paste the previously copied command. This step is essential for successfully moving forward!

Paste the previously copied command

Step 11) Next, type “ls -lart” in the terminal. This command allows us to review all the files.

Type "ls -lart"

Step 12) You can run the command “pip freeze” to see a list of all installed packages.

run "pip freeze" to see a list of packages

Step 13) If the necessary package is not installed, use the command: “pip install …” and fill in the blank with your package name.

use "pack install ..." to install specific package

Step 14) A message indicating successful installation will appear. Congratulations! You have successfully installed your package. To use it, please restart your computer.

installed a package successfully

Conclusion

If you are a Python developer, web hosting manager or Programmer, consider using cPanel as your environment; we’re confident you will enjoy it. We provided a clear explanation of “How to install Python PIP on cPanel” easily. Additionally, we detailed how to purchase a cPanel plan, check your PIP version, and much more. It was a straightforward guide, but if you are still experiencing issues, we would be happy to assist you; just let us know in the comments below.

Share this Post
Eileen.B

Leave a reply

Calculate the value of (8 + 6) :

Save my name and email in this browser for the next time.

Last Comments

Show More
Rating: 0/5