How to Install PIP in Python
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
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.
- type cmd in the Windows search bar and click the “Command Prompt” icon
- type : pip help
if PIP responds, then PIP already there. else, there will be an error like below :
so, lets start installing PIP manually
- 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
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
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