install pip on windows 10 with python 2.7

1.3k Views Asked by At

I am new to python and i need to install virtualenv. I need to use python 2.7 on windows.

First I tried installing pip by downloading get-pip.py and running below command

python get-pip.py

then I got below errors

https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. c:\users\username\appdata\local\temp\tmp6zqwwn\pip.zip\pip_vendor\urllib3\util\ssl_.py:387: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings c:\users\username\appdata\local\temp\tmp6zqwwn\pip.zip\pip_vendor\urllib3\util\ssl_.py:142: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings WAR

I tried searching solutions of above errors

Found solutions saying to install pyopenssl with below command which itself requires pip

pip install pyopenssl ndg-httpsclient pyasn1

So its kind of loop i get into.

found below command as well

python -m ensurepip
o/p --> No module named ensurepip
python -m pip install urllib3[secure]
o/p --> No module named pip 

Tried searching to install pyopenssl without pip but couldn't find any working solution.

Can anyone suggest me how can i install pip on windows 10 with python 2.7 ?

Please suggest !

Note:- can't upgrade to latest python version

Thanks in Advance !

0

There are 0 best solutions below