How to Install PIP in Python

Rani singh
2 min readFeb 10, 2023

--

Today, I was working on a project in Python where, I required to import Matplotlib library of python.

for using this Library, I need to Install that library so, I directly Types a command that we all commonly used python terminal.

e.g : pip install matplotlib

I run Above command and the result is below

pip install matplotlib

so today here I am sharing the steps how we can manually install that Python Installer Package.

PIP is automatically installed with 2.7.9+ and its comes with vertualenv and pyvenv vertual environment.

Before installing PIP on windows, lets check if PIP already installed.

  1. type cmd in the Windows search bar and click the “Command Prompt” icon
  2. type : pip help

if PIP responds, then PIP already there. else, there will be an error like below :

PIP Error

so, lets start installing PIP manually

  1. first Download PIP get-pip.py from https://bootstrap.pypa.io/get-pip.py

or , you can run a command in command prompt

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

downloading get-pip.py

2. now lets install the pip on command prompt using the below command

python get-pip.py

verify pip installation using below command on terminal

pip help

you will get below screen

PIP help

if still it displayed error please check the directory of the file get-pip.py.

using below command

dir

that’s all how we can install PIP manually.

Keep Growing Engineers :)

Happy Weekends

--

--