# PyTorch build from source on Windows

**URL:** <https://discuss.pytorch.org/t/pytorch-build-from-source-on-windows/40288>\
**Category:** Uncategorized\
**Created:** [March 19, 2019, 1:50pm UTC](https://discuss.pytorch.org/t/pytorch-build-from-source-on-windows/40288 "2019-03-19T13:50:28Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mmisiur](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/mmisiur/32/10162_2.png) [@mmisiur](https://discuss.pytorch.org/u/mmisiur)\
**Post date:** [March 20, 2019, 11:21am UTC](https://discuss.pytorch.org/t/pytorch-build-from-source-on-windows/40288/9 "2019-03-20T11:21:36Z")

</div>

Yes! That did the work, after

```auto
python setup.py build --cmake
python setup.py install

```

pytorch was finally installed.  
However

```auto
python
>>> import torch
>>> torch.cuda.is_available()

```

returns `False`. When I run `torch.cuda.current_device()` i get:  
`AssertionError: Torch not compiled with CUDA enabled`

Can this be Nsight Compute issue?

---

_[View the full topic](https://discuss.pytorch.org/t/pytorch-build-from-source-on-windows/40288)._
