Why my WSL torch.cuda_isavaliable() return false?

RosterMouch: <p>Yet i have build the installCuda.sh from NVIDIA yet<br>
And when i using cuDF(a CUDA GPU acclerated Pandas Lib),it runs well,but torch is not good.<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/a/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9.png" data-download-href="https://discuss.pytorch.org/uploads/default/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9" title="sc2"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/1/a/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9_2_690x366.png" alt="sc2" data-base62-sha1="3JLZtjyTjCJ0AX7xwybupBD2fvr" width="690" height="366" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/1/a/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9_2_690x366.png, https://discuss.pytorch.org/uploads/default/optimized/3X/1/a/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9_2_1035x549.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/1/a/1a332512be5763cb7eb6f0dd36eb1dafe9a58ed9_2_1380x732.png 2x" data-dominant-color="222732"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">sc2</span><span class="informations">1920×1020 81.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
But the weried thing is it works on my Windows Host very well,What?What Hell?<br>
How should fix this bug guys?Plz!</p>

ptrblck: <p>You might have installed the CPU-only binary and you could check it with e.g. <code>python -m torch.utils.collect_env</code>. <a href="https://discuss.pytorch.org/t/trouble-installing-torch-with-cuda-using-conda-on-wsl2/136911/4">This post</a> had similar issues and managed to pick the right version.</p>

RosterMouch: <p>Thanks bud,but after i using your method,it still can not using CUDA.Thats what i recieved<br>
Collecting environment information…<br>
PyTorch version: 1.11.0+cu115<br>
Is debug build: False<br>
CUDA used to build PyTorch: 11.5<br>
ROCM used to build PyTorch: N/A</p>
<p>OS: Ubuntu 20.04.4 LTS (x86_64)<br>
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0<br>
Clang version: Could not collect<br>
CMake version: Could not collect<br>
Libc version: glibc-2.31</p>
<p>Python version: 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:25:59)  [GCC 10.3.0] (64-bit runtime)<br>
Python platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.31<br>
Is CUDA available: False<br>
CUDA runtime version: Could not collect<br>
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2060<br>
Nvidia driver version: 511.65<br>
cuDNN version: Could not collect<br>
HIP runtime version: N/A<br>
MIOpen runtime version: N/A</p>
<p>Versions of relevant libraries:<br>
[pip3] numpy==1.21.5<br>
[pip3] torch==1.11.0+cu115<br>
[pip3] torchaudio==0.11.0+cu115<br>
[pip3] torchvision==0.12.0+cu115<br>
[conda] cudatoolkit               11.5.1               hcf5317a_9    nvidia<br>
[conda] numpy                     1.21.5           py39haac66dc_0    conda-forge<br>
[conda] torch                     1.11.0+cu115             pypi_0    pypi<br>
[conda] torchaudio                0.11.0+cu115             pypi_0    pypi<br>
[conda] torchvision               0.12.0+cu115             pypi_0    pypi</p>