wsl2 安装pytorch异常记录

1、 conda 使用官方命令行安装pytorch时,报错:By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA)

pip install torch==1.11.0+cu115 torchvision==0.12.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html

2、驱动更新问题,nvidia-smi 是否可见
更新 window 库到最新,其他博客有描述。

逐步的详细安装教程可参考:
https://zhuanlan.zhihu.com/p/342724621

更新:
在3060的情况下,直接通过命令行:

conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

也可以安装

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
WSL2安装PyTorch可以通过以下步骤完成: 1. 首先,你需要在WSL2安装pip。可以使用以下命令来安装pip: ``` sudo apt update sudo apt install python3-pip ``` 2. 接下来,你需要根据你的CUDA版本选择合适的PyTorch版本。如果你的CUDA版本是11.4,你可以尝试使用与CUDA 11.3对应的PyTorch版本。你可以从PyTorch官方网站上找到对应的安装命令。 3. 你可以尝试使用以下命令来安装PyTorch和相关的库: ``` pip install torch==1.12.1+cu113 torchvision==0.13.1 torchaudio==0.12.1 -f https://download.pytorch.org/whl/torch_stable.html ``` 请注意,上述命令假定你已经在WSL2安装了正确版本的CUDA。如果你没有安装CUDA或者安装了不同的版本,你需要相应地更改命令中的CUDA版本。 总结起来,使用WSL2安装PyTorch的步骤如下: 1. 安装pip 2. 选择合适的PyTorch版本(根据CUDA版本) 3. 使用pip安装PyTorch和相关库 希望这些信息对你有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [在 WSL2 上部署 PyTorch](https://blog.csdn.net/weixin_41446370/article/details/126469801)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [通过WSL2搭建Pytorch1.10+CUDA11.4+NVIDIA Driver深度学习框架](https://blog.csdn.net/LoongEmbedded/article/details/127842365)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值