python - How to make Anaconda work behind HTTP proxy (not https)? -


i'm having trouble working anaconda behind proxy @ work.

when have have following environment variables:

http_proxy: http://domain\username:password@corp.com:8080 https_proxy: https://domain\username:password@corp.com:8080 

or just

http_proxy: http://server\username:password@corp.com:8080 

set git works. anaconda not work. i'm trying run

conda update conda 

and get:

could not connect https://repo.continuum.io/pkgs.... not connect https://repo.continuum.io/pkgs.... 

does anaconda not work http? , requires https proxy? because i'm thinking company may not have https proxy server setup (i've seen them use http). or error:

file "c\anaconda2\", line 340, in wait     waiter.acquire() keyboardinterrupt not connect https://repo.continuum.io/pkgs.... not connect https://repo.continuum.io/pkgs.... 

i'm using windows 7.

you need create .condarc file in windows user area:

c:\users\<username>\ 

the file should contain:

channels: - defaults  # show channel urls when displaying going downloaded , # in 'conda list'. default false. show_channel_urls: true allow_other_channels: true  proxy_servers:     http: http://proxy.yourorg.org:port     https: http://proxy.yourorg.org:port   ssl_verify: false 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -