I am using Anaconda from my company’s network which prevents me from using pip or conda install to install libraries. My question is how to set up http/https proxy on windows with authentication that enables me to do conda or pip install from anaconda prompt or Jupytor?
I am new to these things so I appreciate a detailed step by step procedure with example.
1 Like
ahmed.shaikh.3
nice to meet you.
I am using Anaconda from my company’s network which prevents me from using pip or conda install to install libraries. My question is how to set up http/https proxy on windows with authentication that enables me to do conda or pip install from anaconda prompt or Jupytor?
Basically, Proxy set from jupyter or Anaconda is not possible. So you have to let your Windows system know that they are going through a proxy.
I will show you the URL of the site that will be helpful at that time.
It is a good idea to set up the relevant application from the above sites and try using it.
If your company uses a simple proxy then both conda and pip will support it fine:
However the chances are that the proxy will require to be authenticated against private Certificate Authority and require SSPI proxy authentication, neither of these kind of enterprise security options are well supported in the python world.
One workaround is to “px proxy”, follow the installation guide here: GitHub - genotrance/px: An HTTP proxy server to automatically authenticate through an NTLM proxy. And then with px proxy running you can point pip or conda to use px proxy as their proxy server (default is to point their proxy setting to http://127.0.0.1:3128
).
This all assumes that your company proxy is not blocking PyPi and Anaconda outright, you can test this by trying to download files in your browser, if that is blocked then you have no chance.
Finally if your company is more than 200 employees it likely falls under Anaconda’s terms of service as requiring a commercial license: Anaconda | Terms of Service. If you do fall under this you should contact Anaconda’s sales reps or switch to using vanilla Python or Miniforge: GitHub - conda-forge/miniforge: A conda-forge distribution.
Good luck.
2 Likes
Thank you very much for the help. My company has more than 200 employees for sure and we have a commercial license. I’ll get in touch with Anaconda support to explore Miniforge. Thanks. again!