Tuesday, 8 December 2020

Install Python on your Windows server or local machine



Introduction



Python is a widely used high-level programming language first launched in 1991. Since then, Python has been gaining popularity and is considered as one of the most popular and flexible server-side programming languages.

Unlike most Linux distributions, Windows does not come with the Python programming language by default. However, you can install Python on your Windows server or local machine in just a few easy steps.




Step 1: Download Python Executable Installer





Step 2: Run Executable Installer




Make sure you select the Install launcher for all users and Add Python 3.7 to PATH checkboxes. The latter places the interpreter in the execution path. For older versions of Python that do not support the Add Python to Path checkbox





The Disable path length limit option will not affect any other system settings. Turning it on will resolve potential name length issues that may arise with Python projects developed in Linux.




Step 3: Verify Python Was Installed On Windows

  1. Navigate to the directory in which Python was installed on the system. In our case, it is C:\Users\it\AppData\Local\Programs\Python\Python39 since we have installed the latest version.
  2. Double-click python.exe.
  3. The output should be similar to what you can see below:





Step 4: Verify Pip Was Installed

If you opted to install an older version of Python, it is possible that it did not come with Pip preinstalled. Pip is a powerful package management system for Python software packages. Thus, make sure that you have it installed.

We recommend using Pip for most Python packages, especially when working in virtual environments.

To verify whether Pip was installed:
  1. Open the Start menu and type “cmd.”
  2. Select the Command Prompt application.
  3. Enter pip -V in the console. If Pip was installed successfully, you should see the following output:









1 comment:

Interactive Report: Introduction to the Internet of Things (IoT) ...

Popular Posts