
本来以为 GFW 是暂时性的抽疯,封了 Anaconda 的官网,结果貌似封了两个月,现在只能靠着 proxychains 来做更新。
4 月之前创建一个 conda 环境,下载包的时候本来就慢,优化点是 channle 添加国内 但是 4 月之后,在创建开发环境的时候,就各种报超时,都到不了下载包那一步。
比如
conda create -name py3test python=3 # 执行结果 Fetching package metadata ..... CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/conda-forge/osx-64/repodata.json> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. ConnectionError(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/osx-64/repodata.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10fb9e410>: Failed to establish a new connection: [Errno 65] No route to host',))",),) 本机的 conda info 如下
platform : osx-64 conda version : 4.3.21 conda is private : False conda-env version : 4.3.21 conda-build version : 0+unknown python version : 2.7.12.final.0 requests version : 2.14.2 root environment : /Users/chenxi/anaconda (writable) default environment : /Users/chenxi/anaconda envs directories : /Users/chenxi/anaconda/envs /Users/chenxi/.conda/envs package cache : /Users/chenxi/anaconda/pkgs /Users/chenxi/.conda/pkgs channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.continuum.io/pkgs/free/osx-64 https://repo.continuum.io/pkgs/free/noarch https://repo.continuum.io/pkgs/r/osx-64 https://repo.continuum.io/pkgs/r/noarch https://repo.continuum.io/pkgs/pro/osx-64 https://repo.continuum.io/pkgs/pro/noarch config file : /Users/chenxi/.condarc netrc file : None offline mode : False user-agent : conda/4.3.21 requests/2.14.2 CPython/2.7.12 Darwin/16.6.0 OSX/10.12.5 UID:GID : 501:20 暂时的解决方法是通过 proxychains 来做更新,但是感觉好恶心
大家有没有类似的情况,是咋解决的?
1 lmqdlr Jun 4, 2017 via Android 清华源 |