添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I installed torch using “pip install torch” command. it was working.
I did install torchvision using “pip install torchvision” . after that started getting following error .
Error loading “\lib\site-packages\torch\lib\shm.dll” or one of its dependencies

Note: Uninstalled torch, torchvision and re-installed torch. still the issue persisted.

Following command solved the issue on my machine, I experianced the issue due to MKl version mismatch, latest torch installation getting me mkl which is interfering with mkl I have in my application.

python.exe -m pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu

i have the same issue today:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

I have cuda 12.1 on windows 11. is something broken on pytorch side?

Following on from @Alexander_DE ’s reply, you should be able to resolve the issue by installing PyTorch2.2 instead of the current latest version 2.3.

The previous install commands can be found on: Previous PyTorch Versions | PyTorch

More information on debugging this issue can be found on this thread here: Cuda not available for RTX 6000 mobile - #9 by AlphaBetaGamma96