代码之家  ›  专栏  ›  技术社区  ›  BlueSheepToken

在http代理后面安装带有anaconda的包

  •  2
  • BlueSheepToken  · 技术社区  · 6 年前

    我正试图在水蟒中安装langdect软件包

    当我在办公室工作时,我试图通过在C:\用户\我的用户名中创建一个.condarc文件来设置代理

    在我的档案里

    channels:
      - defaults
    
    show_channel_urls: True
    allow_other_channels: True
    
    proxy_servers:
        http: http://username:passwordwith%escape@proxyhost:8080
        https: https://username:passwordwith%escape@proxyhost:8080
    
    ssl_verify: True
    

    但是我在执行的时候犯了以下错误 conda update conda

    ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): 
    Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 
    (Caused by ProxyError('Cannot connect to proxy.', 
    OSError('Tunnel connection failed: 407 au thenticationrequired')))"))
    

    我已经试过这个问题的解决办法了 How to make Anaconda work behind HTTP proxy (not https)?

    但是我有一些问题,有没有一个简单的方法来检查我的代理阻止了存储库的url我还能试着让它工作吗?

    0 回复  |  直到 6 年前