Step 1: Install
First enter Pytorch official website, pulling down will see a different installation options, depending on your computer's configuration selection options, for example, I chose the stable version, Windows system, pip install, python version 3.6, cuda 9.2, the following figure shows:
the following commands will be needed to install completion after selection, below
the command window command can be executed, if only slowly Suman the like, may be offline download, and install.
Step two: Test
Windows
Linux
This successful installation