How do I install Pytorch offline?
I need to install Pytorch on a computer with no internet connection.

I've tried finding information about this online but can't find a single piece of documentation.

Do you know how I can do this? Is it even possible?

An easy way with pip:


Create an empty folder
pip download torch using the connected computer. You'll get the pytorch package and all its dependencies.
Copy the folder to the offline computer. You must be using the same python setup on both computers (this goes for virtual environments as well)
pip install * on the offline computer, in the copied folder. This installs all the packages in the correct order. You can then use pytorch.


Note that this works for (almost) any kind of python package.
