Python Installation on Windows Server 2022

Python Installation on Windows Server 2022

Python is a general-purpose high-level programming language that is intended to design for code readability.  Its object-oriented approach provides programmers a logical and clear code for mini and large applications. Python is used in different fields, such as web and software applications development, data analytics, machine learning projects, etc. Python programming language allows you to work efficiently and integrate systems in an effective way.

In this guide, we’ll show you how to install pip on Windows Server 2022.

Prerequisites

  1. You should have admin privileges to run and install Python on the windows server using a power shell.
  2. You should have enough space minimum of 2GB and preferred 4 GB RAM of your system for python installation.

You can install Python on windows server 2022 using two methods:

  1. Install Python on windows server 2022 using Command line
  2. Install Python on windows server 2022 using Graphical user interface

Method 1: Install Python on windows server 2022 using Command line

To install the latest python version 3.10.2 on windows server 2022 using the power shell, follow the following procedure:

  1. Open the power shell window on the windows server.
  2. Now, download the latest python installer 3.10.2 on windows server 2022 by running the following command:
    > Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.10.2/python-3.10.2-amd64.exe" -OutFile "python-3.10.2-amd64.exe"

    screenshot of the Python command

  3. Now, execute the following command to install python on windows server 2022 system-wide that will also set the path.
    > .\python-3.10.2-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
  1. screenshot of the Python commandUse the following command to reload the PATH or environment variables:
    screenshot of the Python command
    screenshot of the Python command
  1. Here, the Python installation is completed; now print the installed version on the power shell for verification.
    > python –V

    screenshot of the Python command

Method 2: Install Python on windows server 2022 using Graphical user interface

Follow the below-mentioned steps to install the latest Python version using the graphical user interface environment of windows server 2022:

Step 1: Download python installer

The python installer or setup file is needed to install the latest python version on Windows server 2022. Therefore, download the latest python installer from the official Python download page. The installer will be saved in your system ‘Downloads’ folder.

screenshot of the Python website

Step 2: Run Python Installer

Now, right-click on the python installer and select the ‘Run as Administrator’.

screenshot of the Python installation

Check the box ‘Add Python 3.10.2 to PATH’. This option will add python Path to the system environment variable.  If we select the ‘Install Now’, python will install with default settings and path. Here, we will choose the ‘Customize installation’. So that, according to our requirements, we can change its features.

screenshot of the Python installation

In the next ‘Optional Features’ dialog, we’ll mark the check boxes which features want to install on the windows 2022 server such as pip, python documentation file, tcl/tk IDLE, and python test suite. After selecting the features for installation, click on the ‘Next’.

screenshot of the Python installation

In the ‘Advanced Options’ dialog, check the ‘Install for all users’ that will change the ‘Customize install location’. Click on the ‘install’ to proceed with the default installation location. Alternatively, we can also change this default location to install python somewhere else in window server 2022.

screenshot of the Python installation

The following window appears on the desktop that shows the running progress of the Python installation setup.

screenshot of the Python installation

Once the installation of python is completed, click on the ‘Close’ to exit from the window.

screenshot of the Python installation

Congratulations! Python 3.10.2 is successfully installed on Windows Server 2022 now.

Conclusion

That’s all about the Python 3.10.2 installation on Windows server 2022. We’ve mentioned two different methods for python installation one is by using the power shell and the next is via windows server GUI. By following the above-mentioned steps, you can easily install the latest Python version on your system.  Thanks!

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top