目录
注意问题
UserWarning:
GeForce RTX 3060 Laptop GPU with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37.
If you want to use the GeForce RTX 3060 Laptop GPU GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/
30系显卡暂时不支持CUDA11以下版本,CUDA不支持当前显卡的算力。
解决方法1:https://blog.csdn.net/weixin_43760844/article/details/115706289
解决方法2:conda下载cudatoolkit (貌似没有解决问题, 嘿嘿, 可能只能卸载cuda了)
首先搜索安装包的版本
conda search cudatoolkit
然后安装固定版本的cudatoolkit,我的cuda最高支持11.2
conda install cudatoolkit==11.0.221 -c python
PyTorch 安装 gpu版本的问题
- No matching distribution found for torch==1.10.1+cu111
- No matching distribution found for torchvision==0.11.0+cu111
- No matching distribution found for torch==1.10.1+cu111
我的电脑配置
GPU:RTX3060
CUDA: 11.2
python=3.8
torch-cu >=1.10
如果你的CUDA支持的版本更高, 可能就不需要我这么费劲了
不想看我的经历可以直接使用下方命令
对应1.10版本的torch
pip install torch==1.10.1+cu102 torchvision==0.11.1+cu102 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu102/torch_stable.html
对应1.9.1版本的torch
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install torchtext==0.10.1
对应1.6.0版本的torch
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 torchaudio==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
出现以下错误:
Error loading “H:\thrid_paper\github_code\image_caption\ViTCAP-main\venv\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll” or one of its dependencies.
原因是:CUDA112和torch1.6 cu101不兼容,因为torch1.6 cu101需要CUDA10.1版本。如果您想安装torch1.6 cu101,您可以在conda虚拟环境中安装对应的cudatoolkit2,或者在您的电脑上安装多个CUDA版本。希望这能帮到您。
-
<
7599




被折叠的 条评论
为什么被折叠?



