Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytorch+cuda的安装 #99

Open
any86 opened this issue Jan 22, 2023 · 0 comments
Open

pytorch+cuda的安装 #99

any86 opened this issue Jan 22, 2023 · 0 comments

Comments

@any86
Copy link
Owner

any86 commented Jan 22, 2023

cuda在官方找对应版本

https://developer.nvidia.com/cuda-toolkit-archive

image

pytorch安装命令每次都会不同, 每次看官方吧.

https://pytorch.org/
image

安装过程中各种报错, 最好就是无脑清空下已有安装,然后在执行pytorch官网提供的命令, 由于网速问题可能需要多次安装才能成功.

conda clean -all 

最后代码中试下是否安装成功

import torch
use_gpu = torch.cuda.is_available()
print(use_gpu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant