Error "Badzipfile :File is not a zip file" when install pytorch-0.3.1

system:ubuntu 16.04
package manager:pip

For some reason I need to install pytorch offline.

First, I download the " ", then I execute the command “sudo pip install torch-0.3.1-cp27-cp27mu-linux_x86_64.whl” ,it occurs the error “Badzipfile :File is not a zip file”, and I tried download the package again, but the error still exist.
But it is ok for me to install pytorch-0.3.0 as the same way.

Why don’t you use directly pip install as instructed in the website? Also possibly, your download failed.

Thanks for your reply.
Because the machine which used pytorch can not connect internet.

In that case, are you sure that you copied the file properly? looks like pip is complaining because the file is corrupted.

Thanks for your reply.
I have found the problem caused the problem is that my flash disk is bad, when I changed another one, it is ok.