My computer is offline and cannot access internet. Thus I try to install from the released zip file, but when I uncompress the zip file, it is empty in the subdirs of dir thrid_party. How can I install pytorch from source code on a computer without internet? thanks
Thanks @albanD. now i get all submodules, but when I install it using “python setup.py install”, it gives me following errors:
$ python setup.py install
tools/build_pytorch_libs.sh: line 2: $’\r’: command not found
tools/build_pytorch_libs.sh: line 10: $’\r’: command not found
: invalid optionrch_libs.sh: line 11: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [–] [arg …]
tools/build_pytorch_libs.sh: line 12: $’\r’: command not found
tools/build_pytorch_libs.sh: line 112: syntax error near unexpected token elif' 'ools/build_pytorch_libs.sh: line 112:elif [[ “$REL_WITH_DEB_INFO” ]]; then
It looks like the bash script is not read properly.
What is the machine are you using? Did you use a windows machine at some point to tranfer the files, it looks like end of line symbols are wrong.
Hi @albanD, another strange thing is that pytroch cannot find GPU on my server, before upgrade it is OK. when i call pytorch, it says that “pytorch was compiled without cuDNN support”, do you know how to fix it? thanks
Do you have cudnn installed on the machine while installing?
During the installation there are prints of the cuda version that is detected and the cudnn version that is detected as well.
If your cudnn is at the same place as cuda then it should work fine.
If you won’t want to use cudnn and don’t have it installed, I guess you can set torch.backends.cudnn.enabled=False.
When I compile pytorch, it says “cuDNN cannot be found”. it is so strange.
I want to use cudnn, before cudnn works for pytorch version 0.1, but now since i upgraded it to pytorch 0.4, now GPUs cannot be found by pytorch.
Yes this version is potentially too old.
You may want to try to upgrade to the latest version for cuda 8.0.
Also to make sure it’s detected, you can install it in you ./lib64 and ./include folders inside the cuda install.