赞
踩
- nvcc -V
- nvidia-smi
地址:https://download.pytorch.org/whl/torch_stable.html
先进入虚拟环境,再进入对应的安装目录
- pip install (XXX.whl)
- # 先安装torch,再安装torchvision,再安装torchaudio
- (sc_yolov5) [zqchen@gpurtx02 environment]$ python
- Python 3.9.0 (default, Nov 15 2020, 14:28:56)
- [GCC 7.3.0] :: Anaconda, Inc. on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import torch
- >>> torch.cuda.is_available
- <function is_available at 0x7f7c9cfb8670>
- >>> print(torch.__version__)
- 1.12.1+cu113
- >>> print(torch.cuda.is_available())
- True
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。