pytorch - 💡(How to fix) Fix 2026.04.24 Pytorch nightly wheel for Windows is non functional (LE: cuDNN DLLs are missing, manually adding them solves the issue) [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#181375Fetched 2026-04-25 06:02:46
View on GitHub
Comments
1
Participants
1
Timeline
96
Reactions
0
Author
Participants
Timeline (top)
mentioned ×44subscribed ×44labeled ×6commented ×1

Error Message

D:\Program Files\Microsoft Visual Studio\18\Insiders>python Python 3.14.4 (main, Apr 17 2026, 20:27:01) [MSC v.1944 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import torch Traceback (most recent call last): File "<python-input-0>", line 1, in <module> import torch File "F:\Python314\install\Lib\site-packages\torch_init_.py", line 287, in <module> load_dll_libraries() ~~~~~~~~~~~~~~~~~~~^^ File "F:\Python314\install\Lib\site-packages\torch_init.py", line 283, in _load_dll_libraries raise err OSError: [WinError 126] The specified module could not be found. Error loading "F:\Python314\install\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies. print(torch.version) Traceback (most recent call last): File "<python-input-1>", line 1, in <module> print(torch.version) ^^^^^ NameError: name 'torch' is not defined

Code Example

D:\Program Files\Microsoft Visual Studio\18\Insiders>python
Python 3.14.4 (main, Apr 17 2026, 20:27:01) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import torch
  File "F:\Python314\install\Lib\site-packages\torch\__init__.py", line 287, in <module>
    _load_dll_libraries()
    ~~~~~~~~~~~~~~~~~~~^^
  File "F:\Python314\install\Lib\site-packages\torch\__init__.py", line 283, in _load_dll_libraries
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "F:\Python314\install\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
>>> print(torch.__version__)
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    print(torch.__version__)
          ^^^^^
NameError: name 'torch' is not defined
>>>
RAW_BUFFERClick to expand / collapse

Hi, I just installed https://download-r2.pytorch.org/whl/nightly/cu132/torch-2.13.0.dev20260424%2Bcu132-cp314-cp314-win_amd64.whl.

As the title says, this is what I get:

D:\Program Files\Microsoft Visual Studio\18\Insiders>python
Python 3.14.4 (main, Apr 17 2026, 20:27:01) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import torch
  File "F:\Python314\install\Lib\site-packages\torch\__init__.py", line 287, in <module>
    _load_dll_libraries()
    ~~~~~~~~~~~~~~~~~~~^^
  File "F:\Python314\install\Lib\site-packages\torch\__init__.py", line 283, in _load_dll_libraries
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "F:\Python314\install\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
>>> print(torch.__version__)
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    print(torch.__version__)
          ^^^^^
NameError: name 'torch' is not defined
>>>

I noticed that the wheel is smaller in size comparing with the one from yesterday (2026.04.23): torch-2.13.0.dev20260424+cu132-cp314-cp314-win_amd64.whl - 1.46 GB (1,574,862,373 bytes) torch-2.13.0.dev20260423+cu132-cp314-cp314-win_amd64.whl - 1.77 GB (1,901,793,788 bytes)

At the first glance, once installed, I see that it misses some .dll's in torch\lib folder, for example cuDNN .dll's.

torch-2.13.0.dev20260423+cu132-cp314-cp314-win_amd64.whl works well.

cc @seemethere @malfet @atalman @tinglvv @nWEIdia @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex

extent analysis

TL;DR

The issue is likely due to missing DLLs in the torch\lib folder, which can be resolved by reinstalling the previous version of the wheel that worked well.

Guidance

  • The error message indicates that the shm.dll or one of its dependencies is missing, which is consistent with the observation that some DLLs, including cuDNN DLLs, are missing from the torch\lib folder.
  • The size difference between the two wheel files suggests that the newer version may be incomplete or corrupted.
  • Try reinstalling the previous version of the wheel (torch-2.13.0.dev20260423+cu132-cp314-cp314-win_amd64.whl) that worked well to see if the issue is resolved.
  • Verify that all required DLLs are present in the torch\lib folder after installation.

Notes

The issue may be specific to the particular version of the wheel, and reinstalling the previous version may not be a long-term solution. Further investigation may be needed to determine the root cause of the issue.

Recommendation

Apply workaround: Reinstall the previous version of the wheel (torch-2.13.0.dev20260423+cu132-cp314-cp314-win_amd64.whl) that worked well, as it is likely to resolve the issue temporarily.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING