> For the complete documentation index, see [llms.txt](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/vps-servers/how-to-install-python.md).

# How To Install Python

Certainly! To install Python on a VPS server, here are the commands based on popular server setups. I'll assume your VPS server is running a Linux-based operating system (like Ubuntu/Debian or CentOS):

#### **For Ubuntu/Debian-based VPS Servers**:

1. Update the package list:

   bash

   ```
   sudo apt update
   ```
2. Install Python (the default is Python 3):

   bash

   ```
   sudo apt install python3
   ```
3. Install `pip`, the Python package manager:

   bash

   ```
   sudo apt install python3-pip
   ```
4. Verify the installation:

   bash

   ```
   python3 --version
   pip3 --version
   ```

#### **For CentOS/RHEL-based VPS Servers**:

1. Install Python using `yum`:

   bash

   ```
   sudo yum install python3
   ```
2. Install `pip`:

   bash

   ```
   sudo yum install python3-pip
   ```
3. Confirm installation:

   bash

   ```
   python3 --version
   pip3 --version
   ```

#### **Optional Setup for VPS (Virtual Private Servers)**:

* If you want to manage multiple Python versions, you can use pyenv. Here's a quick guide to install it:

  bash

  ```
  curl https://pyenv.run | bash
  ```
* You may also want to install virtual environment tools:

  bash

  ```
  python3 -m pip install --user virtualenv
  ```
