-2

I am trying to install pip on my Windows machine. I get the latest version of get-pip.py from https://bootstrap.pypa.io/

Then, I fire up the command prompt, locate get-pip.py on my system and try the command:

python get-pip.py

Everytime I try this, I get the following error:

enter image description here

Please help!

Krithika Raghavendran
  • 457
  • 3
  • 10
  • 25

3 Answers3

1

two initial things:

1) what version of python have you installed? new versions come with pip installed by default. 2) have you tried running cmd as administrator ? ive had issues with stuff in the past that running cmd as admin has resolved.

let us know!

Brandon Bailey
  • 781
  • 6
  • 12
  • I have Python version 3.6.6. No, I haven't tried running cmd as administrator (I work in an office where I need special permission for administrator access) – Krithika Raghavendran Jan 04 '19 at 16:24
  • 1
    Okay, if you are trying from office probably the IS might disabled access to those IP addresses -- proxies, etc. That's why its not able to download. – Anoop Mc Jan 04 '19 at 16:26
  • You can try downloading the file manually and install https://bootstrap.pypa.io/get-pip.py 1. Download the get-pip.py installer script. 2. Open the Command Prompt and navigate to the get-pip.py file 3. Run the following command: python get-pip.py – Anoop Mc Jan 04 '19 at 16:29
  • 1
    yeah, itl most likely be a restriction set up by your office sys admins – Brandon Bailey Jan 04 '19 at 16:29
0

Another possible solution is to set the proxy for Windows. In the command prompt do the following.

set HTTP_PROXY="http://username:password@proxy_address:proxy_port"
set HTTPS_PROXY="http://username:password@proxy_address:proxy_port" 

Notice that both the HTTP and the HTTPS proxy use the EXACT same string.

mikeg
  • 444
  • 3
  • 13
0

You can try downloading the file manually and install https://bootstrap.pypa.io/get-pip.py

  1. Download the get-pip.py installer script.
  2. Open the Command Prompt and navigate to the get-pip.py file
  3. Run the following command: python get-pip.py
Anoop Mc
  • 88
  • 7
  • then these answers might help you https://stackoverflow.com/questions/47459747/pip-install-is-not-working – Anoop Mc Jan 04 '19 at 16:42