CondaError of Pytorch installation: CondaHTTPError: HTTP 000 CONNECTION FAILED

1. Using Tsinghuayuan on the Internet is not very useful, then follow the link address indicated, and download all the packages that cannot be downloaded with the Windows browser. If you can't download it, sometimes you need to change the browser
2. Put the manually downloaded package in the pkgs folder of the anaconda installation directory
/home/lzhou/local/anaconda/pkgs
3. ! ! ! ! ! ! ! ! Then

cd  /home/lzhou/local/anaconda/pkgs

Be sure to locate the directory to this directory to perform the installation operation! ! ! ! ! ! ! ! ! !

Then conda install the name of the package is fine.
For example

conda install cudnn-7.0.5-cuda8.0_0.tar.bz2

That's it.
4. Import torch to test whether it is successful
. 5. Go to the path to find torch.

/home/lzhou/local/anaconda/lib/python2.7/site-packages/torch

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325742191&siteId=291194637