Init Ubuntu and change deb&pip source
1 | wget https://github.com/ebxeax/ebxeax.github.io/blob/main/toolbox/initUbuntu/initUbuntu.sh |
CUDA11.6
1 | wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin |
Load library path
1 | gedit ~/.bashrc |
Test nvidia-smi
1 | nvidia-smi |
Test nvcc -V
1 | nvcc -V |
Pytorch
1 | pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 |
get file when network worse
1 | wget https://download.pytorch.org/whl/cu113/torch-1.10.2%2Bcu113-cp36-cp36m-linux_x86_64.whl |
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 jaytp@qq.com