-i https://pypi.douban.com/simple
-i https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
python3.6 torch1.2.0
pip install --user torch==1.2.0 -f https://download.pytorch.org/whl/torch_stable.html -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
验证
import torch
torch.cuda.is_available()
显示为 True
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)