I am trying to install python packages behind a proxy and I get the following error:
pip --proxy=\"user:pass@address:port\" install bokeh
When a proxy terminates a HTTPS connection. It can't send back headers, because it can't read the encrypted data going back and forth, so it sends back the empty string "". httplib attempts to parse "" as "HTTP/1.x " and fails with the above message.
https://github.com/requests/requests/issues/2364
You may want to see this post on how to setup PIP behind a proxy. Are you able to get any pip installs to work or is this the only one giving you a problem?
Using pip behind a proxy
I had the same problem with MEO in Por
I changed my IPv4 DNS to 8.8.8.8 and 8.8.4.4 (Google) and disabled IPv6 and it worked.
SOLVED The issue was that my dorm firewall is blocking pip (pypi.python.org). Issuing the same command at work installs python packages correctly.