Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Anaconda Proxy Setup via .condarc file on Windows

I am having trouble going through a proxy for Anaconda install conda on a Windows 7 machine. How do I use a proxy?

http://conda.pydata.org/docs/config.html

the above link is broken, use this one instead

like image 985
user914425 Avatar asked Nov 24 '15 00:11

user914425


People also ask

How do I create a .condarc file in Windows?

The . condarc file is not included by default, but it is automatically created in your home directory the first time you run the conda config command. To create or modify a . condarc file, open Anaconda Prompt or a terminal and enter the conda config command.

Where is Anaconda config file?

The file is located at /run/anaconda/anaconda. conf . The runtime configuration file is loaded by the Anaconda DBus modules when they are started. It allows us to run all Anaconda processes with the same configuration.

How do you adjust conda configuration to proceed?

All Languages >> Python >> You will need to adjust your conda configuration to proceed. Use `conda config --show channels` to view your configuration's current state, and use `conda config --show-sources` to view config file locations.


1 Answers

I had to create a .condarc file at the C:\Users\username folder.

Use copy con .condarc file if it does not exist at folder above.

File content is:

proxy_servers:
    http: http://username:[email protected]:8080
    https: https://username:[email protected]:8080

Two notes:

  • Do not use tabs, there must be space between http: and http://...
  • You might not have a username and password for the proxy. Leave out the username:password part and it will still work
like image 117
user914425 Avatar answered Sep 25 '22 13:09

user914425