Installing Python on Windows Server is straightforward and follows almost the same process as installing it on a regular Windows device. The traditional Python installation method involves downloading the Python .exe installer and following installation steps, without requiring any complicated configurations.
However, this is not the only way to install Python. Python also provides Python Install Manager, a command-line tool that allows you to install, manage, and switch between multiple Python versions easily.
In this guide, we’ll cover both installation methods on Windows Server 2019, including how to use Python Install Manager to manage different Python versions.
Note:
According to Python documentation, the traditional Python installer executables will no longer be released starting with Python 3.16.
Install Python Using Python Installer Manager
Python Install Manager is an official tool provided by the Python Software Foundation that allows you to download different Python versions, manage existing installations, and switch between them using CMD or PowerShell when running your projects.
Unlike the traditional installer, which installs a specific Python version directly, Python Install Manager acts as a central tool for managing multiple Python runtimes. It’s the recommended approach for installing and managing Python on Windows. If you prefer the traditional installation method, scroll down to the traditional installation section.
Download Python Install Manager For Windows Server
To download and install Python Install Manager, you should visit the official Python website and download the latest release of the installer.
On the Python Windows download page, click on the latest Python Install Manager to open the latest release page.

Then scroll down to the files section and download the MSI package.

Important:
If you are using Windows Server 2019, the .msix installer will not work for you, so make sure to download the .msi installer.
Install Python Install Manager On Windows Server 2019
After downloading the installer, open your Windows Downloads folder, locate the MSI file, usually named Python-manager-x.msi, and run it to install Python Install Manager. The installation can also install the latest Python runtime and its required components.
Install Python using Install Manager
If, using the command above, you didn’t receive any output, it means the installer didn’t install the Python runtime. Follow the steps below to download and install Python from the Install Manager.
First, check the available Python versions. This command displays the available versions that you can install.
py list --onlineTag Name Managed By Version Alias
3.16-dev[-64] Python 3.16.0a1 PythonCore 3.16.0a1 python3[-64].exe, python3.16[-64].exe
3.15[-64] Python 3.15.2 PythonCore 3.15.2 python3.15[-64].exeNote:
In the example output above, you can see two Python versions. Notice that Python 3.16 has a1 at the end of its version number, indicating that it is an Alpha pre-release and not a stable version. Make sure to install a stable release instead. In this example, Python 3.15 (64-bit) is the stable version.
To install the particular Python version from the list you’ve got, use the py install command. For example, to install Python 3.15, run:
py install 3.15Verify Python Installation Using the Py Install Manager
You can verify the installation by running the command below in CMD or PowerShell. The command shows the Python versions installed by the installer.
py listTag Name Managed By Version Alias
3.15[-64] * Python 3.15.2 PythonCore 3.15.2 python3[-64].exe, python3.15[-64].exeInstall Python on Windows Server 2019 with the Traditional Method
To install Python using the traditional installer with the .exe file. First, go to the Python website and download the Windows installer. It is recommended to download the 64-bit installer because most modern devices use 64 bit.
However, if you are not sure whether you are running Windows 64 bit or 32 bit, search for “About your PC” in the Start menu and open it. In the System type, you can see your system architecture.

Install Python on Windows Server for All Users
Download the latest Python .exe installer version, which will be availble up to Python 3.14 For the newer version, you should use the Python installer.
After downloading Python, locate the installer in your Windows Downloads folder and run it as Administrator. The installer provides two options: Install Now (default installation) and Customize Installation.
Both options work fine, but if you want to choose which components to install or specify a different installation directory on your Windows VPS, select Customize Installation.
Python Default Installation (Install Now)
This option is straightforward and quick. If you select Install Now, Python will be installed using the default settings, typically for the current Windows user only. Other Windows accounts on the server may not be able to access this Python installation.
Check both Add python.exe to PATH and Use admin privileges when installing py.exe, then click Install Now to continue.

Install Python with Customized Installation
To have more control over the Python installation, select Customize Installation instead. After selecting it, you will be taken to the Optional features screen, where you can choose which components to include in your installation.
By default, all features are selected. It’s best to keep the default settings, but you can deselect any features you don’t need before clicking Next.

On the Advanced Options screen, you can configure additional installation settings, such as making Python available to all Windows users, downloading additional debugging files, and changing the installation directory.
If you want Python to be available to all users on your Windows Server, enable Install for all users. You can also specify a different installation directory if needed. Once you’ve configured these options, click Install to begin the installation.

Once the installation is complete, you can start running your Python applications on your Windows VPS. You can use CMD or PowerShell to execute Python scripts, install packages with pip, and manage your projects directly from the server.
Disable Installation Restrictions
Once the installation process is complete, a window will pop up saying that the setup was successful. At the bottom of the window, you may have the Disable Path Length Limit option.

Activating this feature option removes the existing limits on the MAX_PATH variable. In this situation, longer names are used for the Path variable without causing issues for the operating system or other parts. As a result, the limitations of installing Python on a Windows server are removed. However, if you don’t want to remove this restriction, skip this step and click Close to complete the process.
Verify Python Installation
To verify that Python is installed successfully, open a new CMD or PowerShell terminal and run the command below to verify it is installed.
python --versionPython 3.14.10If you get an error message or the version number is not displayed, it may indicate that Python was not installed correctly or the PATH was not set properly.
You can reinstall Python and make sure the Add Python to PATH option is enabled on the first screen of the installer. Alternatively, you can locate the Python installation directory and manually add its path to the Windows environment variables.
Install Python Using Winget on Windows Server
You can use WinGet (Windows Package Manager) to download and install Python Install Manager directly from the command line. WinGet is Microsoft’s command-line package manager that lets you find, install, and remove applications without manually downloading their installers.
Before proceeding, check whether WinGet is available on your Windows machine. Open CMD or PowerShell and run:
winget --versionIf you get ” winget is not recognized as a command it means you don’t have WinGet installed on your Windows machine. You need to install it first, then follow the steps below:
Download and Install Python Installer using WinGet
You can download and install Python using the Python installer with this command in CMD or PowerShell. Open either PowerShell or CMD by searching for them in the Start Menu, and run the command below:
winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-interactivity9NQ7512CXL7T is the Microsoft Store product identifier for Python Install Manager, published by the Python Software Foundation.
Alternatively, you can use the Package ID:
winget install -e --id Python.PythonInstallManagerVerify Python Install Manager Installation
To verify the installation, run the command below to check the Python Install Manager version. If the installation was successful, it will display the installed version number.
py --versionThe installer may also install the latest Python runtime automatically. To check whether a Python runtime is installed, run py list. If no Python versions are listed, run the command below to install one.
py install 3.15Conclusion
Installing Python on Windows Server 2019 can be done using either the traditional .exe installer or the newer Python Install Manager. While the traditional method provides a straightforward way to install a specific Python version, Python Install Manager makes it easier to install, manage, and switch between multiple Python versions using CMD or PowerShell.
Both methods are covered in this guide; Python Install Manager is the recommended approach for newer Python releases, especially since the traditional installer will no longer be available starting with Python 3.16. Once Python is installed and configured, you can verify the installation, install the required packages, and start running your Python applications on your Windows Server.
If you want to set up a development environment on your Windows VPS and host websites, installing PHP on IIS can be challenging too, and you can walk through its installation by following this guide.


