pip install torch = = 1.4 . 0 + cpu torchvision = = 0.5 . 0 + cpu - f https: / / download.pytorch.org / whl / torch_stable.html |
https://www.cnblogs.com/andrew-address/p/12733669.html
.1调用pytoch环境:conda activate pytorch
3.2调用python:python
3.3调用torch:import torch
3.4验证显卡是否可以被调用:torch.cuda.is_available()