# Why my WSL torch.cuda\_isavaliable() return false?

**URL:** <https://discuss.pytorch.org/t/why-my-wsl-torch-cuda-isavaliable-return-false/147797>\
**Category:** deployment\
**Created:** [March 30, 2022, 2:36am UTC](https://discuss.pytorch.org/t/why-my-wsl-torch-cuda-isavaliable-return-false/147797 "2022-03-30T02:36:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [March 30, 2022, 3:36am UTC](https://discuss.pytorch.org/t/why-my-wsl-torch-cuda-isavaliable-return-false/147797/2 "2022-03-30T03:36:25Z")

</div>

You might have installed the CPU-only binary and you could check it with e.g. `python -m torch.utils.collect_env`. [This post](https://discuss.pytorch.org/t/trouble-installing-torch-with-cuda-using-conda-on-wsl2/136911/4) had similar issues and managed to pick the right version.

---

_[View the full topic](https://discuss.pytorch.org/t/why-my-wsl-torch-cuda-isavaliable-return-false/147797)._
