Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a .condarc file for Anaconda?

I am trying to set up a proxy server in Anaconda because my firewall does not allow me to run online commands such as

conda update

I see online that I should create a .condarc file that contains the proxy address. Unfortunately,

  1. I dont know how to create that file (is it a text file?)

  2. and where to put it?! (in which folder? in the Anaconda folder?)

Any help appreciated Thanks!

like image 421
ℕʘʘḆḽḘ Avatar asked Apr 27 '15 12:04

ℕʘʘḆḽḘ


People also ask

What is .condarc file?

It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation. The contents should look like # Proxy settings: http://[username]:[password]@[server]:[port] proxy_servers: http: http://user:[email protected]:8080 https: https://user:[email protected]:8080.

Where is the Condarc file in Windows?

condarc file at the C:\Users\username folder. Use copy con . condarc file if it does not exist at folder above.

How do I find my proxy settings on anaconda?

You can see if your proxy is set by running conda info --all .


1 Answers

It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation.

The contents should look like

# Proxy settings: http://[username]:[password]@[server]:[port]
proxy_servers:
    http: http://user:[email protected]:8080
    https: https://user:[email protected]:8080

See http://conda.pydata.org/docs/config.html for more information.

like image 108
asmeurer Avatar answered Oct 17 '22 21:10

asmeurer