1

How can I export my Proxyserver in the pip file for python?

 set http_proxy=http://someserver.com:someport

does not work :/

any ideas?

ciaodarwin
  • 483
  • 3
  • 7
  • 22

2 Answers2

2

This answer may help you:

Generally pip accepts --proxy argument, but CNTLM Windows proxies will not work.

Community
  • 1
  • 1
Michał Fita
  • 1,183
  • 1
  • 7
  • 24
0

Answering this old thread now as it still appears near the top of a google search with no real answer.

On windows the proxy parameters for pip do not seem to work properly and it is necessary to set environment variables up before running pip. This also works with other command line applications like wget etc.

The proxy setting usually needs to have the username and password added to the variable to work correctly.

At the Windows command prompt enter:

set http_proxy=http://DOMAINNAME\username:password@proxyserver:port

and/or

set https_proxy=https://DOMAINNAME\username:password@proxyserver:port