Skip to content

Instantly share code, notes, and snippets.

@HoriLiu
Created January 10, 2017 01:28
Show Gist options
  • Select an option

  • Save HoriLiu/aa091f2cbcf3ff0ebc193eb65c6b2e3e to your computer and use it in GitHub Desktop.

Select an option

Save HoriLiu/aa091f2cbcf3ff0ebc193eb65c6b2e3e to your computer and use it in GitHub Desktop.
Python Anaconda Proxy Setup via .condarc file on Windows
#Create a .condarc file at: C:\Users\username folder.
http://conda.pydata.org/docs/config.html#the-conda-configuration-file-condarc
Example: conda config --add channels r
use copy con .condarc file if does not exist at above folder.
File content is:
proxy_servers:
http: http://username:[email protected]:8080
https: https://username:[email protected]:8080
(DO NOT USE tabs, must be space between http: and http://...)
You might not have a username and password for proxy still works.
@tidypy
Copy link
Copy Markdown

tidypy commented May 3, 2019

another quirk I found is that you can actually have "ssl_verify = true" depending on the proxy script you may actually will require it, even if you in fact do not need a password.
in this case it will prompt you for a password. This method is preferred to entering your full usrname/passwrd in the text file.
and when your password changes you do not need to go through this process agian with .condarc pains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment