Unable to update conda packages behind corporate firewall. Updated .condarc file, proxy settings still it is asking for Proxy user name and password

感情迁移 提交于 2019-12-03 15:03:41

问题


I am behind a corporate firewall. I am trying to update the conda packages by running :

conda update --all

This is aking me for proxy user name and password.

https proxy username:
https proxy username: Password:

After reading many articles on this problems i have taken help from my IT people and updated the proxy_server content in ".condarc" file as follows:

binstar_upload: true
channels:
- https://conda.binstar.org/numba
- https://pypi.python.org/simple/
- defaults
proxy_servers:
    http: http://poPYtheSailor:spinach\@1234@1.1.1.1:5080
    https: https://poPYtheSailor:spinach\@1234@1.1.1.1:5080
ssl_verify: false

Here, proxy server user name and password are my local machine login/password.

After doing all this i am still getting the same message. It is still asking for username and password. According to the IT people "the query is able to contact to the website from where the package are to be downloaded. But it is not able to contact to the proxy as it is not carrying any user id and password". I don't really know what it means. Please help me to solve this issue. We also have apperently dynamic IP adress - though my PC IP address is same for last one year.

Following is "Conda info" command output.

Current conda install:

         platform : win-64
    conda version : 3.14.1
conda-build version : 1.14.1
   python version : 3.4.3.final.0
 requests version : 2.7.0
 root environment : C:\Anaconda3  (writable)
default environment : C:\Anaconda3
 envs directories : C:\Anaconda3\envs
    package cache : C:\Anaconda3\pkgs
     channel URLs : https://conda.binstar.org/numba/win-64/
                    https://conda.binstar.org/numba/noarch/
                    https://pypi.python.org/simple/win-64/
                    https://pypi.python.org/simple/noarch/
                    https://repo.continuum.io/pkgs/free/win-64/
                    https://repo.continuum.io/pkgs/free/noarch/
                    https://repo.continuum.io/pkgs/pro/win-64/
                    https://repo.continuum.io/pkgs/pro/noarch/
      config file : C:\Users\poPYtheSailor\.condarc
is foreign system : False

回答1:


Got the workaround answer to my Own question. So the necessary file is ".condarc" (content of my file is similar to the one I have pasted in the question). Second, I have asked my IT security team to add the list of web URLs (which conda contacts to for downloading the package) in the exception list. That is it. It is working as of now. Command prompt is not asking for Proxy userId/password. The Urls that i have asked them to add in the exceptions list are :

https://conda.binstar.org/numba/win-64/
https://conda.anaconda.org/
https://binstar.org/
https://anaconda.org/
https://repo.continuum.io/
https://pypi.python.org/


来源:https://stackoverflow.com/questions/33778507/unable-to-update-conda-packages-behind-corporate-firewall-updated-condarc-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!