Configure Python Anaconda proxy via .condarc file on Windows

I'm having problems with the Anaconda proxy for installing conda on a Windows 7 computer. How do I use a proxy?

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

+11
source share
4 answers

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

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

File contents:

 proxy_servers: http: http://username: password@corp.com :8080 https: https://username: password@corp.com :8080 

Two notes:

  • Do not use tabs, there should be a space between http: and http://...
  • You may not have a proxy username and password. Leave the username:password part and it will work anyway
+29
source

In Windows 10, you need to additionally configure the domain name in .condarc:

 channels: - admin show_channel_urls: true allow_other_channels: true proxy_servers: http: http://domainname\username: password@proxyserver :port https: http://domainname\username: password@proxyserver :port ssl_verify: true 
+6
source

On windows 10, the car too. The following accepted response format gives a boot error, invalid YAML.

Changing '//' to '\' fixed the problem for me.

 proxy_servers: http: http:\username: password@corp.com :8080 https: https:\username: password@corp.com :8080 
0
source

In my case, on a Linux machine, behind the McAfee web gateway proxy server for conda, only the following setting worked (I deleted the http proxy): hostname: ~ # cat.condarc proxy_servers: https: https: // domain \ user: password @ server port

hostname # conda install tenorflow Environment Solution: Complete

Batch plan

environment location: / anaconda3

Specifications added / updated: - tenorflow

The following packages will be downloaded:

 package | build ---------------------------|----------------- markdown-3.0.1 | py36_0 107 KB gast-0.2.0 | py36_0 15 KB libprotobuf-3.6.0 | hdbcaa40_0 4.1 MB protobuf-3.6.0 | py36hf484d3e_0 610 KB conda-4.5.12 | py36_0 1.0 MB termcolor-1.1.0 | py36_1 7 KB tensorflow-base-1.9.0 |mkl_py36h2ca6a6a_0 75.7 MB grpcio-1.12.1 | py36hdbcaa40_0 1.7 MB astor-0.7.1 | py36_0 43 KB tensorboard-1.9.0 | py36hf484d3e_0 3.3 MB tensorflow-1.9.0 |mkl_py36h6d6ce78_1 3 KB absl-py-0.6.1 | py36_0 152 KB _tflow_190_select-0.0.3 | mkl 2 KB ------------------------------------------------------------ Total: 86.7 MB 

The following new packages will be installed:

 _tflow_190_select: 0.0.3-mkl absl-py: 0.6.1-py36_0 astor: 0.7.1-py36_0 gast: 0.2.0-py36_0 grpcio: 1.12.1-py36hdbcaa40_0 libprotobuf: 3.6.0-hdbcaa40_0 markdown: 3.0.1-py36_0 protobuf: 3.6.0-py36hf484d3e_0 tensorboard: 1.9.0-py36hf484d3e_0 tensorflow: 1.9.0-mkl_py36h6d6ce78_1 tensorflow-base: 1.9.0-mkl_py36h2ca6a6a_0 termcolor: 1.1.0-py36_1 

The following packages will be updated:

 conda: 4.5.4-py36_0 --> 4.5.12-py36_0 

Continue ([y] / n)? Y

Download and unpack packages markdown-3.0.1 | 107 kb | ########################################### | 100% gast 0.2.0 | 15 kb | ########################################### | 100% libprotobuf-3.6.0 | 4.1 MB | ########################################### | 100% protobuf-3.6.0 | 610 KB | ########################################### | 100% conda-4.5.12 | 1.0 MB | ########################################### | 100% termcolor-1.1.0 | 7 kb | ########################################### | 100% base-flow tensor-1.9. | 75.7 MB | ########################################### | 100% grpcio-1.12.1 | 1.7 MB | ########################################### | 100% Astor-0.7.1 | 43 Kb | ########################################### | 100% Tensorboard-1.9.0 | 3.3 MB | ########################################### | 100% flow tensor-1.9.0 | 3 kb | ########################################### | 100% abs-pi-0.6.1 | 152 Kb | ########################################### | 100% _tflow_190_select-0. | 2 Kb | ########################################### | 100% Transaction preparation: completed Transaction verification: completed Transaction execution: completed

0
source

Source: https://habr.com/ru/post/1236659/


All Articles