使用anaconda安装PyTorch时出现Conda运行时错误

时间:2017-04-27 15:45:38

标签: python anaconda pytorch

使用anaconda安装pytorch时,我不断获得Conda运行时错误

Traceback (most recent call last):
  File "/home/codehead/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 479, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/home/codehead/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 145, in _main
    exit_code = args.func(args, p)
  File "/home/codehead/anaconda2/lib/python2.7/site-packages/conda/cli/main_install.py", line 80, in execute
    install(args, parser, 'install')
  File "/home/codehead/anaconda2/lib/python2.7/site-packages/conda/cli/install.py", line 420, in install
    raise CondaRuntimeError('RuntimeError: %s' % e)
CondaRuntimeError: Runtime error: RuntimeError: Runtime error: Could not open u'/home/codehead/anaconda2/pkgs/pytorch-0.1.11-py27_5.tar.bz2.part' for writing (HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com', port=443): Read timed out.).

我用来安装PyTorch的命令是

 conda install -c soumith pytorch=0.1.11 

1 个答案:

答案 0 :(得分:0)

HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com', port=443): Read timed out.

这是一个HTTP超时,很可能是由于一个flakey互联网连接。从堆栈跟踪中,我猜测你正在运行conda 4.2。 Conda 4.3具有更长的超时时间,现在它们也可配置。

conda update conda