美文网首页
debug-解决bioconda的ProxyError

debug-解决bioconda的ProxyError

作者: RachaelRiggs | 来源:发表于2020-05-17 06:00 被阅读0次

    bioconda下载fastqc报错,显示:

    Collecting package metadata (current_repodata.json): failed
    
    ProxyError: Conda cannot proceed due to an error in your proxy configuration.
    Check for typos and other configuration errors in any '.netrc' file in your home directory,
    any environment variables ending in '_PROXY', and any other system-wide proxy
    configuration settings.
    

    显示代理设置错误,搜索google看有木有类似的问题,发现:
    https://stackoverflow.com/questions/29267646/how-to-enable-proxy-servers-with-anaconda-python
    在stackflow上发现类似的问题,看了看点赞最多的两个答案:

    answer1
    answer2

    无非是代理设置的问题,于是打算重新在配置文件.condarc中添加代理proxy;

    .condarc在哪呢,用conda info查看就可以看到conda 所有的安装信息拉;

    然后用sublime text打开.condarc重新编辑:

    open -a ‘Sublime\ Text’ file1/file2/.condarc
    
    # 添加proxy_servers
    proxy_servers:
        http: http://bgp---------.xyz:035
        https: https://bgp--------.xyz:036
        https: https://bgp--------.xyz:036
    ssl_verify: False
    

    你可能注意到这里的ssl认证被移除了,ssh认证移除有什么好处呢?
    https://cloud.tencent.com/developer/news/461978

    它能够卸载应用服务器上额外的任务,这样它们就可以专注于它们的主要功能。
    
    它能够节省这些应用服务器上的资源。
    
    而且,根据使用的负载均衡器的不同,它还可以帮助进行HTTPS检查、反向代理、cookie持久性、流量管理等等。
    
    最后一点是最重要的一点:在某些情况下,SSL卸载可以帮助进行流量检查。
    
    与加密一样重要的是,它有一个主要缺点:攻击者可以隐藏在加密的通信流中。由于攻击者隐藏在HTTPS通信流中,所以出现了很多引人注目的漏洞。
    

    相关文章

      网友评论

          本文标题:debug-解决bioconda的ProxyError

          本文链接:https://www.haomeiwen.com/subject/msfjohtx.html