[Solved]Confusing HTTP error when installing pytorch


#1

I use ubuntu14.04, with CPU.
when I install pytorch in anaconda(I type command just as pytorch.org says),things always get wrong,like this:

Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment /home/zhanglu/anaconda3:

The following NEW packages will be INSTALLED:

pytorch:     0.1.9-py36_2 soumith
torchvision: 0.1.7-py36_1 soumith


The following packages will be UPDATED:

conda:       4.3.8-py36_0         --> 4.3.13-py36_0


Proceed ([y]/n)? y

pytorch-0.1.9- 100% |################################| Time: 0:02:49   1.44 MB/s
pytorch-0.1.9- 100% |################################| Time: 0:05:52 692.97 kB/s
pytorch-0.1.9- 100% |################################| Time: 0:01:15   3.23 MB/s

CondaError: CondaHTTPError: HTTP None None for url 
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com',
 port=443): Read timed out.",),)

CondaError: CondaHTTPError: HTTP None None for url 
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com',
 port=443): Read timed out.",),)

CondaError: CondaHTTPError: HTTP None None for url 
Elapsed: None

An HTTP error occurred when trying to retrieve this URL.
ConnectionError(ReadTimeoutError("HTTPSConnectionPool(host='binstar-cio-packages-prod.s3.amazonaws.com',
 port=443): Read timed out.",),)

I’ve tried many times, but every time error occurs in this same step.
I’m looking forward your answers,thanks very very much for your help!!!


#2

Solved, just rebooting makes it right…:joy:


(Gu Wang) #3

I am getting this error when I use conda to install magma-cuda80. Reboot does not help me. Is there any alternative way to install magma-cuda80?


(Yun Chen) #4

If you are in China, maybe you can try tuna’s mirror of anaconda, s3 is not stable for Chinese developers.

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

(Gu Wang) #5

Thanks @chenyuntc, it is true that s3 is not stable. And unfortunately tuna channel doesn’t have the magma-cuda80 package :joy:


(Qichao Tang) #6

what do you to slove the problem about magma-cuda80 package?


(soulpacket) #7

Though i reboot,can not solve the problem.


(Sarvesh Ts) #8

Please update to the latest version of Navigator.

Open a terminal (on Linux or Mac) or the Anaconda Command Prompt (on windows)
and type

$ conda update anaconda-navigator