How to install pip with a specific python version

Question:

I want to install pip for python 2.7, but I am also having python 3.x but both locations are different. when ever I install or update the pip It is installing in the python 3.x location.

How to install pip for python 2.7?

Asked By: Kiran Kumar Kotari

||

Answers:

I recently found the following solution, when you are maintaining python2.x and python 3.x in host system. You can find the pip under Scripts folder.

Try pip --version it gives pip version and python version as well

If you want to install package using pip use the following commands.

python -m pip install package_name
python2.x -m pip install package_name

Which reads the specified python pip module to install the package

Answered By: Kiran Kumar Kotari
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.