【无标题】

【无标题】,第1张

-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

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/715814.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-25
下一篇 2022-04-25

发表评论

登录后才能评论

评论列表(0条)

保存