Pip is one of the best tools for installing and managing Python packages. Pip has become popular to its usage by several applications. It is used for handling binary packages over the easy_installed packaged manager as it enables 3rd party package installations. The newest version of Python comes with default installation of pip. In this tutorial, you will learn about the steps to install Pip, check its version and use of some basic commands for its use.
Python is an open-source programming language with which you to run applications and plugins from several 3rd party sources (or even applications developed by you) on your server. It is cross-platform which means that it can be run on different operating systems, along with Windows Server OS.
Pre-Install Checkup
Prior to installing Pip on your server, you’ll need to ensure that you have installed Python.
You can test for a Python installation on your Windows server by opening a command prompt (click on the Windows icon and type cmd, then click on the command prompt icon). Then type python and press Enter in the command prompt window. If Python installation is done correctly, you will see output similar to the below:
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
In case you receive a message as below:
Python is not recognized as an internal or external command, operable program or batch file.
This means Python is either not installed or the system variable path hasn’t been set. It is important to either launch Python from the folder in which it is installed or adjust your system variables for allowing Python to be launched from any location.
Steps to Install Pip
After confirming that Python is correctly installed, the next step is to install Pip.
1. First download get-pip.py to a folder on your computer.
2. Then open a command prompt and go to the folder that contains get-pip.py.
3. Execute the below command:
python get-pip.py
4. Pip is now installed.
Pip installation can be verified by opening a command prompt and entering the below command:
pip -V
The output will be similar to the below one:
pip 18.0 from c:\users\administrator\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)
Once Pip is installed and configured, you can start using it to manage your Python packages. To get a brief overview of the available commands and syntax for Pip, open a command prompt and enter:
pip help
In this way, you have learned to install PIP on Windows.
Also Read: