Pytorch Install

146 Views Asked by At

I HAVE A ERROR IN INSTALLING PYTORCH: PLEASE HELP ME. CondaHTTPError: HTT P000 CONNECTION FAILED for url https://conda.anaconda.org/pytorch/win-64/current_repodata.json 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. 'https//conda.anaconda.org/pytorch/win-64'

1

There are 1 best solutions below

2
Noob ML Dude On

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

The possible reason for HTTP error could be an unstable network connection or a corporate firewall.

If it was an unstable network connection, as mentioned in the Error message, retry the installation steps that failed.

If you are behind a corporate firewall, you might need additional steps to add your proxy server to the .condarc file on your machine.

  • Since you are on Windows, you could open the Anaconda prompt and run conda info to figure out where the .condarc file is located.
  • Find the proxy by running echo "$http_proxy" in your prompt. Copy the proxy.
  • Open the .condarc file and paste the proxy under proxy_servers section

For more details see: Anaconda Docs: Configure conda for use behind a proxy server (proxy_servers)