python get-pip.py not working behind proxy

Solution 1:

It looks like you need to use a proxy but don't setup the proxy with get-pip.py. That's why it fails. According to the documentation get-pip.py should be given the proxy in the following way:

python get-pip.py --proxy="http://[user:passwd@]proxy.server:port"

Taking the verbose output from your experiments with curl as the base you would need to use it like this:

python get-pip.py --proxy="http://X.X.X.X:XXYY"

Or, with your specific command line you've used so far:

sudo -H -E python /opt/stack/devstack/files/get-pip.py \
    --proxy="http://X.X.X.X:XXYY" \
    -c /opt/stack/devstack/tools/cap-pip.txt --verbose