# Fail to build debug version on windows

**URL:** <https://discuss.pytorch.org/t/fail-to-build-debug-version-on-windows/81127>\
**Category:** deployment\
**Created:** [May 14, 2020, 3:11am UTC](https://discuss.pytorch.org/t/fail-to-build-debug-version-on-windows/81127 "2020-05-14T03:11:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![peterjc123](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/peterjc123/32/2790_2.png) [@peterjc123](https://discuss.pytorch.org/u/peterjc123)\
**Post date:** [May 14, 2020, 12:29pm UTC](https://discuss.pytorch.org/t/fail-to-build-debug-version-on-windows/81127/4 "2020-05-14T12:29:02Z")

</div>

> [@teng](#):
>
> ImportError: cannot import name ‘default\_generator’ from ‘torch.\_C’ (unknown location)

Nope, mine is a different one. As for your problem, if you have a previous installation, please remember to remove that first.

---

_[View the full topic](https://discuss.pytorch.org/t/fail-to-build-debug-version-on-windows/81127)._
