# WinError 126 when import torch

**URL:** <https://discuss.pytorch.org/t/winerror-126-when-import-torch/80249>\
**Category:** Uncategorized\
**Created:** [May 7, 2020, 10:05pm UTC](https://discuss.pytorch.org/t/winerror-126-when-import-torch/80249 "2020-05-07T22:05:10Z")\
**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:** [May 7, 2020, 11:18pm UTC](https://discuss.pytorch.org/t/winerror-126-when-import-torch/80249/2 "2020-05-07T23:18:39Z")

</div>

Based on [this post](https://discuss.pytorch.org/t/cannot-import-torch-on-jupyter-notebook/79334/3) from @peterjc123 you might still have the CUDA version installed, so I would recommend to run the uninstall command a few times and check the current environment for another PyTorch installation.

---

_[View the full topic](https://discuss.pytorch.org/t/winerror-126-when-import-torch/80249)._
