注意這裏不是在安裝pytorch!!!
參考這個 https://github.com/hiili/WindowsTorch
這是個神人啊,把相關包和路徑都打包好了,保證你windows命令行可以用git就行:
1. 打開windows cmd窗口輸入
> git clone https://github.com/hiili/WindowsTorch.gits C:\torch
如果你不想安裝在C盤,下面有更改的地方
2. > cd C:\torch
> setpaths.cmd
如果你不想安裝在C盤,那就文本編輯上面這個cmd文件,把C盤換成你的盤
3. 確保你上面cmd文件的路徑都正確
>lunjit
Torch安裝成功: