PIP not working - proxy - Connection aborted

后端 未结 3 1301
一向
一向 2020-12-21 22:00

I am trying to install python packages behind a proxy and I get the following error:

pip --proxy=\"user:pass@address:port\" install bokeh
3条回答
  •  长情又很酷
    2020-12-21 22:13

    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

提交回复
热议问题