Installing pytorch on OSX(SOLVED)

Hi,
Thank you always for your continuous help.
I am trying to install PyTorch on OS X.
I have successfully installed Anaconda (but it is too slow to start and I want to know why…), but I have the following error message when trying to install PyTorch from terminal as follows:

Actually, I have successfully installed and working on another windows PC.
Thank you for advance.


usr$ conda install pytorch torchvision -c pytorch

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/noarch/repodata.json.bz2>

Elapsed: -

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.

If your current network has https://www.anaconda.com blocked, please file

a support request with your network engineering team.

ConnectTimeout(MaxRetryError(“HTTPSConnectionPool(host=‘repo.anaconda.com’, port=443): Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x103a06588>, ‘Connection to repo.anaconda.com timed out. (connect timeout=9.15)’))”))

It seems to be a connection issue to the conda server.
Could you install conda packages in the past using this system and network?
If so, could you retry to install it after a while?

What do you mean by “[Anaconda] is too slow”?

1 Like

Hi ptrblck,

Thank you always for your help!
It seems that pytorch was installed correctly. As you suggest, my problem had come from the network connection issue.
Another problem of the reaction speed of Anaconda also seemed to have come from the same issue. It now works!

Thank you very much:)

1 Like