Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

Can anyone tell me how to install pip in Python?

1 Answer

0 votes
by (108k points)

Pip (preferred installer program) helps install other packages and libraries in Python. By default, pip is already installed in the latest version of Python, but if you are using an older version, then you have to install pip. For that, refer to the below steps:

First, check the presence of pip in Python. For that simply write:

pip help

If something appears, then it means that you are already having pip in your Python version. If not, then an error will come as pip not found.

After checking, if you are getting the error, then you have to download pip get-pip.py from the below link:

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

Now, open your command prompt and make sure to run it as the administrator.

Then, in the command prompt, type:

Python get-pip.py for installing pip in Python

The above command will install pip. Now, for checking the version of pip, just write:

pip --version

If you are looking for an online course to learn Python, check out this Python Training program by Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 27, 2020 in Python by bharathbk (280 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 5, 2019 in Python by Sammy (47.6k points)

Browse Categories

...